Lines Matching refs:menu

42 import com.android.internal.view.menu.MenuBuilder;
43 import com.android.internal.view.menu.MenuItemImpl;
44 import com.android.internal.view.menu.MenuPresenter;
45 import com.android.internal.view.menu.MenuView;
46 import com.android.internal.view.menu.SubMenuBuilder;
67 * <li><em>A navigation button.</em> This may be an Up arrow, navigation menu toggle, close,
85 * <li><em>An {@link ActionMenuView action menu}.</em> The menu of actions will pin to the
88 * frequent, important or typical</a> actions along with an optional overflow menu for
324 * Check whether the overflow menu is currently showing. This may not reflect
327 * @return true if the overflow menu is currently showing
339 * Show the overflow items from the associated menu.
341 * @return true if the menu was able to be shown, false otherwise
348 * Hide the overflow items from the associated menu.
350 * @return true if the menu was able to be hidden, false otherwise
357 public void setMenu(MenuBuilder menu, ActionMenuPresenter outerPresenter) {
358 if (menu == null && mMenuView == null) {
364 if (oldMenu == menu) {
378 if (menu != null) {
379 menu.addMenuPresenter(outerPresenter, mPopupContext);
380 menu.addMenuPresenter(mExpandedMenuPresenter, mPopupContext);
811 * <p>Applications that wish to populate the toolbar's menu can do so from here. To use
812 * an XML menu resource, use {@link #inflateMenu(int)}.</p>
824 // Initialize a new menu for the first time.
825 final MenuBuilder menu = (MenuBuilder) mMenuView.getMenu();
830 menu.addMenuPresenter(mExpandedMenuPresenter, mPopupContext);
852 * Inflate a menu resource into this toolbar.
854 * <p>Inflate an XML menu resource into this toolbar. Existing items in the menu will not
857 * @param resId ID of a menu resource to inflate
864 * Set a listener to respond to menu item click events.
866 * <p>This listener will be invoked whenever a user selects a menu item from
879 * the navigation button and menu. Insets define the minimum margin for these components
899 * the navigation button and menu. Insets define the minimum margin for these components
918 * the navigation button and menu. Insets define the minimum margin for these components
937 * the navigation button and menu. Insets define the minimum margin for these components
957 * the navigation button and menu. Insets define the minimum margin for these components
976 * the navigation button and menu. Insets define the minimum margin for these components
1050 final Menu menu = mMenuView != null ? mMenuView.peekMenu() : null;
1051 if (ss.expandedMenuItemId != 0 && mExpandedMenuPresenter != null && menu != null) {
1052 final MenuItem item = menu.findItem(ss.expandedMenuItemId);
1747 * Must be called before the menu is accessed
1767 * Interface responsible for receiving menu item click events if the items themselves
1772 * This method will be invoked when a menu item is clicked if the item itself did
1877 public void initForMenu(Context context, MenuBuilder menu) {
1882 mMenu = menu;
1924 public void onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing) {
1933 public boolean expandItemActionView(MenuBuilder menu, MenuItemImpl item) {
1960 public boolean collapseItemActionView(MenuBuilder menu, MenuItemImpl item) {