I have managed to create a menu with four options. I would now like to create four sub menus of the same style for each option.
In my infinite nooby-ness I have created four classes for the sub menus but I cannot figure out how to move between the menus(Classes). For instance I have four options Prem, Champ, L1, L2–I have created the Prem sub menu.
How do I get the program to move to the class(SubMenu) when the Prem option is selected, and how do I get it to move back?
If you haven’t already, check out the Dev guide entries for the Menu resource and creating a menu.
basically, if you’re using eclipse you just have to add an Android XML file and specify the the content is a menu. You can then add submenus and the system takes care of navigation for you. (You will need to load the menu using the MenuInflater function)
You should end up with your menu xml looking like this: