Hi
i hav created XML for the menu layout and i am inflating the same, the code
doesnt give any compilation errors but when i click on menu button menu wont
appear, here is the code :
public boolean onCreateOptionMenu(Menu myMenu)
{
super.onCreateOptionsMenu(myMenu);
//addRegularMenuItems(myMenu);
this.myMenu=menu;
MenuInflater inflater = getMenuInflater();
inflater.inflate(R.menu.menu, menu );
return true;
}
menu.xml is like this which is placed inside res/menu
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/menu"
>
<group
android:id="@+id/grour_menu" >
<item
android:id="@+id/list_menu"
android:title="List"
android:orderInCategory="0" android:visible="true" android:enabled="true"
android:menuCategory="system"/>
<item
android:id="@+id/find_menu"
android:title="Find"
android:orderInCategory="1" android:visible="true" android:enabled="true"
android:menuCategory="system"/>
<item
android:id="@+id/help_menu"
android:title="Help"
android:orderInCategory="2" android:visible="true" android:enabled="false"
android:menuCategory="system"/>
<item
android:id="@+id/mylist_menu"
android:title="My List"
android:orderInCategory="3" android:visible="true" android:enabled="false"
android:menuCategory="system"/>
</group>
</menu>
please help me out in solving the problem
--
Bharath B.G.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---