Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Landscape problems #49

Open
Del-S opened this issue Nov 21, 2018 · 3 comments
Open

Landscape problems #49

Del-S opened this issue Nov 21, 2018 · 3 comments

Comments

@Del-S
Copy link

Del-S commented Nov 21, 2018

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.

@Del-S
Copy link
Author

Del-S commented Nov 22, 2018

Or another idea. When you click on the tooltip it will recalculate size to show complete text. That would probably have to ignore anchor position.

@ViHtarb
Copy link
Owner

ViHtarb commented Nov 22, 2018

Hi, I'll try to fix this next weekend.

@ViHtarb
Copy link
Owner

ViHtarb commented Jan 11, 2020

Hi. Can you provide more information as screenshots or sample code?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants