Home > DeveloperSection > Interviews > How many types of menus are there in andriod?

Posted on    February-04-2015 1:09 AM

 Android Android  Android Activity  Android Layout  Android Listview 
 1 Answer(s)
  758  View(s)
Rate this:

Mayank Tripathi
Mayank Tripathi

Total Post:807

Posted on    February-04-2015 2:09 AM

Finally, I get through menus in android  and got some important aspects as follows:

Menus are a common user interface component in many types of applications.

There are  three fundamental types of menus or action presentations on all versions of Android:

Options menu and action bar
The options menu is the primary collection of menu items for an activity. It's where you should place actions that have a global impact on the app, such as "Search," "Compose email," and "Settings."


Context menu and contextual action mode

A context menu is a floating menu that appears when the user performs a long-click on an element. It provides actions that affect the selected content or context frame. 


Popup menu

A popup menu displays a list of items in a vertical list that's anchored to the view that invoked the menu. It's good for providing an overflow of actions that relate to specific content or to provide options for a second part of a command. Actions in a popup menu should not directly affect the corresponding content—that's what contextual actions are for. Rather, the popup menu is for extended actions that relate to regions of content in your activity.


Here is a sample implementation of a contextual menu on list view: Contextual Menu Implementation in Android



Modified On Feb-04-2015 01:29:29 AM

Don't want to miss updates? Please click the below button!

Follow MindStick