1. Menu Categories
- General Menu
- Sub-Menu
- Context Menu
- Icon Menu
- Secondary Menu
- Alternate Menu
2. Menu Class Andriod.view.menu 3. Menu Parameter Name: string header Menu ID: Integer Group ID: Indicates which group the item is in (Group-related function Removgroup (ID) setgroupcheckable (id,checkab le,exclusive) setgroupenabled (id,boolean,enabled) setgroupvisible (id,visible)) sort: An integer that specifies the order of the menu item in the menumenu.add (1,//group ID4,//item ID4,//order, the numbers are big."Four"//name);4. Menu structure: A menu can include multiple menu items, multiple sub-menus, A submenu can include multiple menu items and submenus 5.activity creates a menu instance and then calls the Oncreateoptionmenu callback method, invoking the activity's callback method when the menu item is selected onoptionitemselected 6. You can create a context menu for long-click events for a view. An option menu can be associated with only one activity, but multiple context menus can be related to multiple views under that activity. 7. You can add to this app a menu of other apps that can handle a type of data (the intent filter is declared). 8. You can create a menu from the XML.
Android Learning seven Menu