Closed PattaFeuFeu closed 6 years ago
Thanks for reporting the issue!
I think it is caused by a change introduced with the Support Library 24.1.1 to 24.2.1 update. I think before it would just move the additional options menu items to the overflow menu if the text was too long.
The problem is that if we want to fix this properly we need to make sure that the title has the correct width in the collapsed state (staying to the left of the icons) and a different width in the expanded state, allowing for additional words in the first line.
This should theoretically be doable, but I am currently quite busy and therefore probably not able look into it very soon. Pull requests are welcome :)
@PattaFeuFeu have u fixed ur issue? Im facing this issue even when i have only one option menu
I have the same problem.
I think expanded Title width used collapsed title's width.... it should re-measure while expanded .
This is still an issue.
This should be fixed through PR #46 in the next release. @raphaelm, could you make one when you are back from your journey?
Ah, and don't forget to take into account #52 when making the new release!
The fix from #46 is included in the newest release 27.1.0
. Thanks @SimonSchubert !
Once there is a certain amount of items in the options menu, the toolbar text width decreases. On a 1080p xxhdpi phone, more than two items lead to a massive shortage, depending on the text of course.
Attached, you will find screenshots taken with the demo app running and the following changes introduced.
To reproduce, paste the following into menu_demo.xml:
Zero items:
One item:
Two items:
Three items:
Four items: