Lines Matching refs:menu

20 import com.android.internal.view.menu.MenuBuilder;
21 import com.android.internal.view.menu.MenuPopupHelper;
22 import com.android.internal.view.menu.MenuPresenter;
23 import com.android.internal.view.menu.SubMenuBuilder;
51 * Callback interface used to notify the application that the menu has closed.
55 * Called when the associated menu has been dismissed.
57 * @param menu The PopupMenu that was dismissed.
59 public void onDismiss(PopupMenu menu);
63 * Constructor to create a new popup menu with an anchor view.
65 * @param context Context the popup menu is running in, through which it
75 * Constructor to create a new popup menu with an anchor view and alignment
78 * @param context Context the popup menu is running in, through which it
90 * Constructor a create a new popup menu with a specific style.
92 * @param context Context the popup menu is running in, through which it
171 * @return a {@link MenuInflater} that can be used to inflate menu items from XML into the
172 * menu returned by {@link #getMenu()}.
181 * Inflate a menu resource into this PopupMenu. This is equivalent to calling
190 * Show the menu popup anchored to the view specified during construction.
198 * Dismiss the menu popup.
206 * Set a listener that will be notified when the user selects an item from the menu.
215 * Set a listener that will be notified when this menu is dismissed.
226 public boolean onMenuItemSelected(MenuBuilder menu, MenuItem item) {
236 public void onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing) {
252 // Current menu will be dismissed by the normal helper, submenu will be shown in its place.
260 public void onCloseSubMenu(SubMenuBuilder menu) {
266 public void onMenuModeChange(MenuBuilder menu) {
270 * Interface responsible for receiving menu item click events if the items themselves
275 * This method will be invoked when a menu item is clicked if the item itself did