Defines a application menu that is summoned by Menuinflater.
Location: Res/menu/filename.xml
Type: point to Menu Resource
Grammar:
<?XML version= "1.0" encoding= "Utf-8"?><Menuxmlns:android= "Http://schemas.android.com/apk/res/android"> <ItemAndroid:id= "@[+][package:]id/resource_name"Android:title= "string"android:titlecondensed= "string"Android:icon= "@[package:]drawable/drawable_resource_name"Android:onclick= "Method Name"android:showasaction=["Ifroom"| "Never" | "Withtext" | "Always" | "Collapseactionview"] android:actionlayout= "@[package:]layout/layout_resource_name"Android:actionviewclass= "Class name"Android:actionproviderclass= "Class name"Android:alphabeticshortcut= "string"Android:numericshortcut= "string"android:checkable=["true"| "false"] android:visible=["true"| "false"] android:enabled=["true"| "false"] android:menucategory=["Container"| "System" | "Secondary" | "Alternative"] android:orderincategory= "integer" /> <GroupAndroid:id= "@[+][package:]id/resource name"Android:checkablebehavior=["None"| "All" | "single"] android:visible=["true"| "false"] android:enabled=["true"| "false"] android:menucategory=["Container"| "System" | "Secondary" | "Alternative"] android:orderincategory= "integer" > <Item/> </Group> <Item> <Menu> <Item/> </Menu> </Item></Menu>
Example: Imperfect, put again later.
Android-resource Menu Summary