问题
What is the difference between Menu and Context Menu? How they are creating in android, menu including edit, delete, copy and many other option in android. here, by using list items during creating context menu and menu.
回答1:
There are three types of Menus
- Option Menu (If you click on Hardware Menu button your option menu will come into play)
- Context Menu (If you long click on any list item in list view (your context menu will come into play we have to register context menu to work)
- SubMenu
来源:https://stackoverflow.com/questions/7091122/diffence-between-menu-and-context-menu-and-creating-steps-of-these