I have added Menu.AddSubMenu(4,4,6,"SubMenu") to the Activity_CreateMenu sub in corwin42’s example and want clicking “SubMenu” to redisplay the menu with submenu items. How can this be achieved? Any help would be greatly appreciated.
Add the submenuitems to the newly created submenu.
Dim smSubmenu As ACSubMenu
smSubmenu = NavDrawer.NavigationView.Menu.AddSubMenu(4,4,6,"SubMenu") ' Remeber the submenu created/created by AddSubMenu...
smSubmenu.AddWithGroup2(1, miUpgrade, 1001, "Upgrade", xml.GetDrawable("ic_account_circle_black_24dp")).ItemCollapsed=True ' add item to the new submenu
Thank you DonManfred. Corwin's example "material Material Design 4 -Modifyable and advanced Menu" displays a menu when an overflow icon is clicked on a Toolbar.
and not a NavDrawer. How do I modify your code? While I have been a member for a few years now, I am still very much a beginner at programming.