Android Question activity menu

jayel

Active Member
Licensed User
Longtime User
Hello,

I know that when you have to add a menuitem, it is done in the Activity_Create event.
Is there a way (new lib, or ...) that will let you add menu items when you for example click a button?
 

DonManfred

Expert
Licensed User
Longtime User
B4X:
Sub button_click
    Activity.AddMenuItem("Title","menutitle")
End Sub
?
 
Upvote 0

jayel

Active Member
Licensed User
Longtime User
No, like I said above, normally the only way to add menu items is in the Activity_Create event.
Or is this working for you?
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
I did´nt try but that´s what i would try first.
Your question suggest me it dont work.

Then you maybe need a custom menu where you can add/change menuitems at runtime.
I have in mind there is one (or more) but i dont remember the name.
 
Upvote 0
Top