Implementing SubMenu

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

Implementing SubMenu

Postby jagtap.jj1 » Fri Aug 22, 2008 12:37 pm

I want to implement submenu of main menu.
SubMenu having submenu Item's , can I use onCreateOptionsMenu() method for submenu's items just like main menu {onCreateOptionsMenu(Menu menu)} if not is there other solution.

For selecting submenu item is there method onSubMenuItemSelected(SubMenu smenu) like onMenuItemSelected(Menu menu) for main menu ,if not how to select sunmenu's items for manipution.

In other words I want to develop application having main menu two submenu 1.OPTIONS and 2.EXIT
for submenu OPTIONS having items a.settings , and c.cancel

whenever i click menu on emulator there should be two sub options OPTIONS and EXIT
and i select OPTIONS there should OPTIONS item list a.settings , and c.cancel

jalandar jagtap
Thank you
java-android developer
User avatar
Senior Developer
Senior Developer
Posts: 124
Joined: Fri Aug 22, 2008 11:52 am
Location: India(Mumbai)


Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 7 guests