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;
49 * Callback interface used to notify the application that the menu has closed.
53 * Called when the associated menu has been dismissed.
55 * @param menu The PopupMenu that was dismissed.
57 public void onDismiss(PopupMenu menu);
144 * @return a {@link MenuInflater} that can be used to inflate menu items from XML into the
145 * menu returned by {@link #getMenu()}.
154 * Inflate a menu resource into this PopupMenu. This is equivalent to calling
163 * Show the menu popup anchored to the view specified during construction.
171 * Dismiss the menu popup.
179 * Set a listener that will be notified when the user selects an item from the menu.
188 * Set a listener that will be notified when this menu is dismissed.
199 public boolean onMenuItemSelected(MenuBuilder menu, MenuItem item) {
209 public void onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing) {
225 // Current menu will be dismissed by the normal helper, submenu will be shown in its place.
233 public void onCloseSubMenu(SubMenuBuilder menu) {
239 public void onMenuModeChange(MenuBuilder menu) {
243 * Interface responsible for receiving menu item click events if the items themselves
248 * This method will be invoked when a menu item is clicked if the item itself did