Lines Matching refs:menu
19 import com.android.internal.view.menu.MenuBuilder;
20 import com.android.internal.view.menu.MenuPopupHelper;
21 import com.android.internal.view.menu.MenuPresenter;
22 import com.android.internal.view.menu.SubMenuBuilder;
45 * Callback interface used to notify the application that the menu has closed.
49 * Called when the associated menu has been dismissed.
51 * @param menu The PopupMenu that was dismissed.
53 public void onDismiss(PopupMenu menu);
85 * @return a {@link MenuInflater} that can be used to inflate menu items from XML into the
86 * menu returned by {@link #getMenu()}.
95 * Inflate a menu resource into this PopupMenu. This is equivalent to calling
104 * Show the menu popup anchored to the view specified during construction.
112 * Dismiss the menu popup.
120 * Set a listener that will be notified when the user selects an item from the menu.
129 * Set a listener that will be notified when this menu is dismissed.
140 public boolean onMenuItemSelected(MenuBuilder menu, MenuItem item) {
150 public void onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing) {
166 // Current menu will be dismissed by the normal helper, submenu will be shown in its place.
174 public void onCloseSubMenu(SubMenuBuilder menu) {
180 public void onMenuModeChange(MenuBuilder menu) {
184 * Interface responsible for receiving menu item click events if the items themselves
189 * This method will be invoked when a menu item is clicked if the item itself did