In your menu.xml place android:showAsAction="always" or "ifRoom" under each item
Android - How to set more than 2 items in action bar on landscape mode
-
02-06-2022 - |
Question
I'm trying to set action bar for my app. I want that the action bar will contain 4 icons. in portrait mode it work fine! the items are at the bottom of the screen. I'm using the following code :
android:uiOptions="splitActionBarWhenNarrow"
This code succesfully split the Action bar in portrait mode..
when the orientation is on landscape mode , only 2 icons display in the upper screen and the rest of the icons are in the menu icon button (the 3 little dots ) what should i do to make the other icons spread all over the action bar?
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow