What are the diff开发者_开发问答erences between the following types of menus in Android?
- option menu
- context menu
- sub menu
Can anyone give me an explanation and an example for each?
- Option menu: The menu that appears when you press the menu button
- Context menu: The menu that appears like a dialog with a list when you (mostly) longpress on list elements
- Sub menu: can be used to display more menu items with your option menu.
More details: http://developer.android.com/guide/topics/ui/menus.html
精彩评论