Android Menu | Different types of menu in android
Android Menu :
Android provides an easy and flexible user interface component known as menu, which is used to handle a set of actions. Menu is a set of options, the user can select from to perform an action . Android menu provide a familiar and consistent user experience all over the application.
Types of Menu :
Android offers three fundamental types of menus :
1. Option Menu :
Android option menu is the primary collection of menu items for an activity. It is the place where we implement the actions that have a global impact on the app, such as Search, Settings and Delete.
2. Context Menu :
Context menu provides a set of menu options when user perform long click on an Element. Most often context menu is used for items in a RecyclerView, GridView, ListView or other view collections in which the user can perform direct actions on each item.
Android provides two different way of context menu :-
3. Popup Menu :
Android provides an easy and flexible menu style i.e. Popup menu. A popup menu displays a list of items in a vertical list that’s anchored to the view that invoked the menu. Android popup menu appears below the anchor view if there is room, or above the view otherwise.

Comments
Post a Comment