tags:

views:

30

answers:

1

How to open the ContextMenu in Android by Clicking a Button?

A: 

A context menu is conceptually similar to the menu displayed when the user performs a "right-click" on a PC. You should use a context menu to provide the user access to actions that pertain to a specific item in the user interface.

On Android, a context menu is displayed when the user performs a "long press" (press and hold) on an item.

Alternatively, if you need a button, you can implement the menu for the view and change the content dynamically.

Vinay