jayel Active Member Licensed User Longtime User Apr 19, 2015 #1 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?
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 Apr 19, 2015 #2 B4X: Sub button_click Activity.AddMenuItem("Title","menutitle") End Sub ? Upvote 0
jayel Active Member Licensed User Longtime User Apr 19, 2015 #3 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
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?
DonManfred Expert Licensed User Longtime User Apr 19, 2015 #4 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
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.
jayel Active Member Licensed User Longtime User Apr 19, 2015 #5 OK, maybe somebosy else who knows the name of a custom menu? Upvote 0
DonManfred Expert Licensed User Longtime User Apr 19, 2015 #6 https://www.b4x.com/android/forum/threads/material-design-4-modifyable-and-advanced-menu.49128/ Upvote 0
fixit30 Active Member Licensed User Longtime User Apr 19, 2015 #7 Or alternatively I use this and create my menu options on button click... https://www.b4x.com/android/forum/threads/jfeinstein10-slidingmenu-library.36482/ Upvote 0
Or alternatively I use this and create my menu options on button click... https://www.b4x.com/android/forum/threads/jfeinstein10-slidingmenu-library.36482/