Implementing SubMenu

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

Implementing SubMenu

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

Hello
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 ,b.help 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 ,b.help and c.cancel

jalandar jagtap
E-mail: jagtap.jj@gmail.com
Thank you
java-android developer
User avatar
jagtap.jj1
Senior Developer
Senior Developer
 
Posts: 124
Joined: Fri Aug 22, 2008 11:52 am
Location: India(Mumbai)

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 8 guests