Example usage for Java android.widget PopupMenu fields, constructors, methods, implement or subclass
The text is from its open source code.
PopupMenu(Context context, View anchor) Constructor to create a new popup menu with an anchor view. | |
PopupMenu(Context context, View anchor, int gravity) Constructor to create a new popup menu with an anchor view and alignment gravity. |
void | dismiss() Dismiss the menu popup. |
Class> | getClass() Returns the runtime class of this Object . |
OnTouchListener | getDragToOpenListener() Returns an OnTouchListener that can be added to the anchor view to implement drag-to-open behavior. |
Menu | getMenu() Returns the Menu associated with this popup. |
MenuInflater | getMenuInflater() |
void | inflate(@MenuRes int menuRes) Inflate a menu resource into this PopupMenu. |
void | setOnDismissListener(OnDismissListener listener) Sets a listener that will be notified when this menu is dismissed. |
void | setOnMenuItemClickListener(OnMenuItemClickListener listener) Sets a listener that will be notified when the user selects an item from the menu. |
void | show() Show the menu popup anchored to the view specified during construction. |