Lines Matching refs:menu

34 import android.support.v7.internal.view.menu.MenuBuilder;
35 import android.support.v7.internal.view.menu.MenuItemImpl;
36 import android.support.v7.internal.view.menu.MenuPresenter;
37 import android.support.v7.internal.view.menu.MenuView;
38 import android.support.v7.internal.view.menu.SubMenuBuilder;
79 * <li><em>A navigation button.</em> This may be an Up arrow, navigation menu toggle, close,
95 * <li><em>An {@link ActionMenuView action menu}.</em> The menu of actions will pin to the
98 * frequent, important or typical</a> actions along with an optional overflow menu for
337 * Check whether the overflow menu is currently showing. This may not reflect
340 * @return true if the overflow menu is currently showing
352 * Show the overflow items from the associated menu.
354 * @return true if the menu was able to be shown, false otherwise
361 * Hide the overflow items from the associated menu.
363 * @return true if the menu was able to be hidden, false otherwise
370 public void setMenu(MenuBuilder menu, ActionMenuPresenter outerPresenter) {
371 if (menu == null && mMenuView == null) {
377 if (oldMenu == menu) {
391 if (menu != null) {
392 menu.addMenuPresenter(outerPresenter, mPopupContext);
393 menu.addMenuPresenter(mExpandedMenuPresenter, mPopupContext);
812 * <p>Applications that wish to populate the toolbar's menu can do so from here. To use
813 * an XML menu resource, use {@link #inflateMenu(int)}.</p>
825 // Initialize a new menu for the first time.
826 final MenuBuilder menu = (MenuBuilder) mMenuView.getMenu();
831 menu.addMenuPresenter(mExpandedMenuPresenter, mPopupContext);
853 * Inflate a menu resource into this toolbar.
855 * <p>Inflate an XML menu resource into this toolbar. Existing items in the menu will not
858 * @param resId ID of a menu resource to inflate
865 * Set a listener to respond to menu item click events.
867 * <p>This listener will be invoked whenever a user selects a menu item from
880 * the navigation button and menu. Insets define the minimum margin for these components
900 * the navigation button and menu. Insets define the minimum margin for these components
919 * the navigation button and menu. Insets define the minimum margin for these components
938 * the navigation button and menu. Insets define the minimum margin for these components
958 * the navigation button and menu. Insets define the minimum margin for these components
977 * the navigation button and menu. Insets define the minimum margin for these components
1052 final Menu menu = mMenuView != null ? mMenuView.peekMenu() : null;
1053 if (ss.expandedMenuItemId != 0 && mExpandedMenuPresenter != null && menu != null) {
1054 final MenuItem item = menu.findItem(ss.expandedMenuItemId);
1765 * Must be called before the menu is accessed
1792 * Interface responsible for receiving menu item click events if the items themselves
1797 * This method will be invoked when a menu item is clicked if the item itself did
1909 public void initForMenu(Context context, MenuBuilder menu) {
1914 mMenu = menu;
1956 public void onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing) {
1965 public boolean expandItemActionView(MenuBuilder menu, MenuItemImpl item) {
1992 public boolean collapseItemActionView(MenuBuilder menu, MenuItemImpl item) {