Android Question How to produce a menubar with menus with menuitems?

wdegler

Active Member
Licensed User
I wish to display a menubar in B4A containing menus which contain menuitems. I have already done this in b4j but none of these are recognized in B4A even though Menu and MenuItem are in the Help list. I have not found a tutorial on B4A menus not any mention of a needed library.

Can someone point me to a tutorial about menubars/menus/menuitems for B4A and to a possible needed library?

Note: MenuBar is not in the B4A help list.

Help with this will be appreciated.

Walter
 

artsoft

Member
Licensed User
Can you post an example please? You can also create a graphic which shows your idea...

Thx.
 

wdegler

Active Member
Licensed User
I have attached a screenshot of a menubar (partly open) at the top of a program written in B4J.
I wish to do the same for a program written in B4A.
 

Attachments

wdegler

Active Member
Licensed User
The standard Android menu doesn't support nested menus. You should use a different interface. Maybe based on this library: http://www.b4x.com/android/forum/threads/jfeinstein10-slidingmenu-library.36482/#content

You can then show a quick action menu from each of the items: http://www.b4x.com/android/forum/posts/87419/
Thank you for the information, Erel. I am looking into using this sliding menu library.

I am still uncertain, however, about why "Menu" and "MenuItem" are in the Help list for B4A but are not usuable, at least, not without the addition of another (unknown) library .
 
Top