Skip to content

Landscape problems #49

@Del-S

Description

@Del-S

We want to use this library with landscape but it has two main problems (all of these happened with Gravity.Top):

  1. Toolbar width in landscape is the same as in portrait mode (setting maxWidth does not help). If the text is too long it can take all of the screen or create the second problem.
  2. When the text is too long there is no arrow displayed and text is cut off because the container ends on anchor view.

Full width can significantly decrease height of the toolbar in landscape and I'm not really sure where is the problem I tested it by setting Gravity.Left and it had full width so it might be a problem with LayoutParameters or padding in getContentView().

As for cutting off content there could be a check if toolbar will not fit the screen it could switch the Gravity to something else or just use scrollbar but that could end up with a situation where there is only 1 line of text with a scrollbar next to it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions