Number of action buttons on the action bar

MLDev

Active Member
Licensed User
Longtime User
When I add action buttons with .AddMenuItem or .AddMenuItem2 up to 5 are displayed on the action bar. With 6 action buttons the action overflow button and only 4 action buttons are displayed on the action bar with the other 2 in the action overflow menu. My question is how can I control how many action buttons are on the action bar? For example I want only 2 action buttons on the action bar and 6 in the action overflow menu.

Thank you
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
Currently the items will be shown on the action bar based on the available room.

Devices with hardware menu button (that run Android 4.x) do not show the overflow menu icon. This means that there is a good chance that the user will miss those items. It is therefore recommended to use an alternative way to show the other options.
 
Upvote 0

MLDev

Active Member
Licensed User
Longtime User
Currently the items will be shown on the action bar based on the available room.

I was afraid of that. Right now I'm using AHActionBar and simulating an action overflow menu. It's a bit of work but it'll do what I want.

Thanks for the fast reply.
 
Upvote 0
Top