Lines Matching refs:menu
17 package com.android.internal.view.menu;
40 * Presents a menu as a small, simple popup anchored to another view.
76 public MenuPopupHelper(Context context, MenuBuilder menu) {
77 this(context, menu, null, false, com.android.internal.R.attr.popupMenuStyle, 0);
80 public MenuPopupHelper(Context context, MenuBuilder menu, View anchorView) {
81 this(context, menu, anchorView, false, com.android.internal.R.attr.popupMenuStyle, 0);
84 public MenuPopupHelper(Context context, MenuBuilder menu, View anchorView,
86 this(context, menu, anchorView, overflowOnly, popupStyleAttr, 0);
89 public MenuPopupHelper(Context context, MenuBuilder menu, View anchorView,
93 mMenu = menu;
105 // Present the menu using our context, not the menu builder's context.
106 menu.addMenuPresenter(this, context);
259 public void initForMenu(Context context, MenuBuilder menu) {
310 public void onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing) {
311 // Only care about the (sub)menu we're presenting.
312 if (menu != mMenu) return;
316 mPresenterCallback.onCloseMenu(menu, allMenusAreClosing);
325 public boolean expandItemActionView(MenuBuilder menu, MenuItemImpl item) {
329 public boolean collapseItemActionView(MenuBuilder menu, MenuItemImpl item) {
351 public MenuAdapter(MenuBuilder menu) {
352 mAdapterMenu = menu;
375 // Since a menu item's ID is optional, we'll use the position as an