Lines Matching refs:menu
17 package android.support.v7.internal.view.menu;
41 * Presents a menu as a small, simple popup anchored to another view.
79 public MenuPopupHelper(Context context, MenuBuilder menu) {
80 this(context, menu, null, false, R.attr.popupMenuStyle);
83 public MenuPopupHelper(Context context, MenuBuilder menu, View anchorView) {
84 this(context, menu, anchorView, false, R.attr.popupMenuStyle);
87 public MenuPopupHelper(Context context, MenuBuilder menu, View anchorView,
89 this(context, menu, anchorView, overflowOnly, popupStyleAttr, 0);
92 public MenuPopupHelper(Context context, MenuBuilder menu, View anchorView,
96 mMenu = menu;
108 // Present the menu using our context, not the menu builder's context.
109 menu.addMenuPresenter(this, context);
247 public void initForMenu(Context context, MenuBuilder menu) {
298 public void onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing) {
299 // Only care about the (sub)menu we're presenting.
300 if (menu != mMenu) return;
304 mPresenterCallback.onCloseMenu(menu, allMenusAreClosing);
313 public boolean expandItemActionView(MenuBuilder menu, MenuItemImpl item) {
317 public boolean collapseItemActionView(MenuBuilder menu, MenuItemImpl item) {
339 public MenuAdapter(MenuBuilder menu) {
340 mAdapterMenu = menu;
363 // Since a menu item's ID is optional, we'll use the position as an