The other day I saw an application with a branching options menu. I searched a lot but didn’t find any info. How can I create this?
The other day I saw an application with a branching options menu . I
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use the below link for your reference of createing menus and sub menus.
LINK1
LINK2
If nothing works then you can also try the below::
As can be seen in Creating Menus sub menus can not contain sub menus.
You could show a Context menu after clicking on the item in the options menu. This could show your five more options in a floating view above the screen.
You have to overwrite the onCreateContextMenu to create a ContextMenu and I think you have to call the contextMenu manually in the onOptionsItemSelected method. For resources on how to create the context menu see this paragraph in the article mentioned above.
To open the ContextMenu you can call openContextMenu in your Activity. You may need to register the menuitem before to enable your activity to find the correct context menu.