0

`Having read the following:

If you believe that more than four of your menu items can be justified as action items, then you should carefully consider their relative level of importance and try to set no more than four as action items (and do so using the "ifRoom" value to allow the system to put some back in the overflow menu when space is limited on smaller screens). Even if space is available on a wide screen, you should not create a long stream of action items that clutter the UI and appear like a desktop toolbar, so keep the number of action items to a minimum.

And the answers on this question: Menu Items are not showing on Action Bar

My problem is that I want my appbar to always have the maximum menu items that can be shown. I have 8 menu items on the appbar with app:showAsAction="always" but some of them will not show in smaller screens. So I have decided to use app:showAsAction="ifRoom" option in order to hide some menu items in smaller screens. The problem now is that those menu items with ifRoom option, will not be displayed as action buttons on app bar, even if there is plenty of space, and will always be on the 3 dot menu button.

So the question remains. How can I make ifRoom work for more than 4 menu items?

RandomType
  • 23
  • 1
  • 5

0 Answers0