Android Question max number items on AddMenuItem3?

Roberto P.

Well-Known Member
Licensed User
Longtime User
possible that there is a maximum limit to the number of elements in the function AddMenuItem3? inserts only 5 items!?

thanks
rp
 

Roberto P.

Well-Known Member
Licensed User
Longtime User
So why, only displays up to five menu icons? the sixth is not seen?
see image
thanks


upload_2014-5-28_8-3-24.png


upload_2014-5-28_8-4-52.png
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
15.png
AddMenuItem3 (Title AsString, EventName AsString, BitmapAs android.graphics.Bitmap, AddToActionBar AsBoolean)

Similar to AddMenuItem2. If AddToActionBar is true then the item will be displayed in the action bar (on Android 3.0+ devices) if there is enough room.
If there is not enough room then the item will be displayed together with the other menu items.
 
Upvote 0

Roberto P.

Well-Known Member
Licensed User
Longtime User
HI DonMandred
as you can see from the picture, there is space for other icons.
In fact, I see that puts the sixth picture in the menu.
thank you for reply and for other help.

upload_2014-5-28_14-38-34.png
 
Upvote 0

Roberto P.

Well-Known Member
Licensed User
Longtime User
I understand that there is a limit to 5 items?! see image

upload_2014-5-28_14-55-6.png
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
There is no limit to the number of items. On Android 2.x (before the action bar) the first five menu items show as icons when you open the menu and the other show under the More icon.

On Android 3+ the menu items appear in the bar. The other menus should appear when you press on the menu button (or three dots button). The OS determines whether there is enough room. Make sure not to load any large image.
 
Upvote 0

Roberto P.

Well-Known Member
Licensed User
Longtime User
hello Erel,
as you can see from the picture, there is space and the images are small, nevertheless the system adds an icon in the menu bar at the bottom.
is there a way to force the operation and to add other icons in the top bar?

any other ideas or components that will allow you to enter more than 5 icons?
thanks
 
Upvote 0
Top