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

wdegler

Active Member
Licensed User
Longtime 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

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

Thx.
 
Upvote 0

wdegler

Active Member
Licensed User
Longtime 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

  • WDDScreenshot.jpg
    WDDScreenshot.jpg
    85.3 KB · Views: 615
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Upvote 0

wdegler

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

You can then show a quick action menu from each of the items: https://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 .
 
Upvote 0
Top