Searched defs:menu (Results 1 - 25 of 132) sorted by relevance

123456

/frameworks/base/core/tests/coretests/src/android/view/menu/
H A DMenuLayoutLandscape.java17 package android.view.menu;
H A DMenuLayoutPortrait.java17 package android.view.menu;
H A DMenuLayout.java17 package android.view.menu;
19 import android.view.menu.MenuScenario.Params;
41 public boolean onPrepareOptionsMenu(Menu menu) { argument
44 * This activity is meant to try a bunch of different menu layouts. So,
45 * we recreate the menu every time it is prepared.
47 menu.clear();
48 onCreateOptionsMenu(menu);
H A DMenuWith1Item.java17 package android.view.menu;
H A DMenuWith1ItemTest.java17 package android.view.menu;
19 import android.view.menu.MenuWith1Item;
21 import com.android.internal.view.menu.MenuBuilder;
53 // Open menu, click on an item
67 // open menu, move around to give it focus
72 // close the menu
81 // open the menu, menu item shouldn't be focused, because we are not
H A DMenuScenario.java17 package android.view.menu;
28 * number of menu items. Used @link {@link ListScenario} as a reference.
59 public boolean onCreateOptionsMenu(Menu menu) { argument
61 mMenu = menu;
67 if ((item = onAddMenuItem(menu, i)) == null) {
71 item = menu.add(0, 0, 0, (givenTitle != null) ? givenTitle : ("Item " + i));
88 public boolean onPrepareOptionsMenu(Menu menu) { argument
90 mMenu = menu;
96 * Override this to add an item to the menu.
100 * @return The item that was added to the menu, o
103 onAddMenuItem(Menu menu, int itemPosition) argument
[all...]
/frameworks/support/v7/appcompat/src/android/support/v7/internal/view/menu/
H A DBaseWrapper.java17 package android.support.v7.internal.view.menu;
H A DExpandedMenuView.java17 package android.support.v7.internal.view.menu;
20 import android.support.v7.internal.view.menu.MenuBuilder;
21 import android.support.v7.internal.view.menu.MenuBuilder.ItemInvoker;
22 import android.support.v7.internal.view.menu.MenuView;
31 * The expanded menu view is a list-like menu with all of the available menu items. It is opened
32 * by the user clicking no the 'More' button on the icon menu view.
46 /** Default animations for this menu */
69 public void initialize(MenuBuilder menu) { argument
[all...]
H A DMenuDialogHelper.java17 package android.support.v7.internal.view.menu;
43 public MenuDialogHelper(MenuBuilder menu) { argument
44 mMenu = menu;
48 * Shows menu as a dialog.
54 final MenuBuilder menu = mMenu;
57 final AlertDialog.Builder builder = new AlertDialog.Builder(menu.getContext());
69 final View headerView = menu.getHeaderView();
75 builder.setIcon(menu.getHeaderIcon()).setTitle(menu.getHeaderTitle());
81 // Show the menu
152 onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing) argument
[all...]
H A DMenuWrapperFactory.java17 package android.support.v7.internal.view.menu;
H A DMenuPresenter.java17 package android.support.v7.internal.view.menu;
32 * Called by menu implementation to notify another component of open/close events.
38 * Called when a menu is closing.
39 * @param menu
42 public void onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing); argument
46 * of menu state so that it does not attempt to hide the action bar
57 * Initialize this presenter for the given context and menu.
62 * @param menu Menu to host
64 public void initForMenu(Context context, MenuBuilder menu); argument
67 * Retrieve a MenuView to display the menu specifie
108 onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing) argument
123 expandItemActionView(MenuBuilder menu, MenuItemImpl item) argument
132 collapseItemActionView(MenuBuilder menu, MenuItemImpl item) argument
[all...]
H A DMenuView.java17 package android.support.v7.internal.view.menu;
22 * Minimal interface for a menu view. {@link #initialize(MenuBuilder)} must be called for the
23 * menu to be functional.
29 * Initializes the menu to the given menu. This should be called after the
32 * @param menu The menu that this MenuView should display.
34 public void initialize(MenuBuilder menu); argument
37 * Returns the default animations to be used for this menu when entering/exiting.
38 * @return A resource ID for the default animations to be used for this menu
[all...]
H A DSubMenuBuilder.java17 package android.support.v7.internal.view.menu;
28 * The model for a sub menu, which is an extension of the menu. Most methods are proxied to the
29 * parent menu.
83 boolean dispatchMenuItemSelected(MenuBuilder menu, MenuItem item) { argument
84 return super.dispatchMenuItemSelected(menu, item) ||
85 mParentMenu.dispatchMenuItemSelected(menu, item);
/frameworks/base/tools/layoutlib/bridge/src/com/android/internal/view/menu/
H A DBridgeMenuItemImpl.java17 package com.android.internal.view.menu;
39 * Instantiates this menu item.
41 BridgeMenuItemImpl(MenuBuilder menu, int group, int id, int categoryOrder, int ordering, argument
43 super(menu, group, id, categoryOrder, ordering, title, showAsAction);
44 Context context = menu.getContext();
58 // If the menu item has an associated action provider view,
H A DMenuBuilder_Delegate.java17 package com.android.internal.view.menu;
/frameworks/base/core/java/com/android/internal/view/menu/
H A DExpandedMenuView.java17 package com.android.internal.view.menu;
20 import com.android.internal.view.menu.MenuBuilder.ItemInvoker;
31 * The expanded menu view is a list-like menu with all of the available menu items. It is opened
32 * by the user clicking no the 'More' button on the icon menu view.
37 /** Default animations for this menu */
42 * @param menu The model for the menu which this MenuView will display
54 public void initialize(MenuBuilder menu) { argument
[all...]
H A DMenuDialogHelper.java17 package com.android.internal.view.menu;
42 public MenuDialogHelper(MenuBuilder menu) { argument
43 mMenu = menu;
47 * Shows menu as a dialog.
53 final MenuBuilder menu = mMenu;
56 final AlertDialog.Builder builder = new AlertDialog.Builder(menu.getContext());
66 final View headerView = menu.getHeaderView();
72 builder.setIcon(menu.getHeaderIcon()).setTitle(menu.getHeaderTitle());
78 // Show the menu
149 onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing) argument
[all...]
H A DMenuView.java17 package com.android.internal.view.menu;
19 import com.android.internal.view.menu.MenuBuilder;
20 import com.android.internal.view.menu.MenuItemImpl;
25 * Minimal interface for a menu view. {@link #initialize(MenuBuilder)} must be called for the
26 * menu to be functional.
32 * Initializes the menu to the given menu. This should be called after the
35 * @param menu The menu that this MenuView should display.
37 public void initialize(MenuBuilder menu); argument
[all...]
H A DIconMenuPresenter.java16 package com.android.internal.view.menu;
18 import com.android.internal.view.menu.MenuView.ItemView;
32 * MenuPresenter for the classic "six-pack" icon menu.
42 private static final String VIEWS_TAG = "android:menu:icon";
43 private static final String OPEN_SUBMENU_KEY = "android:menu:icon:submenu";
52 public void initForMenu(Context context, MenuBuilder menu) { argument
53 super.initForMenu(context, menu);
178 public void onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing) { argument
H A DMenuPresenter.java17 package com.android.internal.view.menu;
29 * Called by menu implementation to notify another component of open/close events.
33 * Called when a menu is closing.
34 * @param menu
37 public void onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing); argument
41 * of menu state so that it does not attempt to hide the action bar
52 * Initialize this presenter for the given context and menu.
57 * @param menu Menu to host
59 public void initForMenu(Context context, MenuBuilder menu); argument
62 * Retrieve a MenuView to display the menu specifie
103 onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing) argument
118 expandItemActionView(MenuBuilder menu, MenuItemImpl item) argument
127 collapseItemActionView(MenuBuilder menu, MenuItemImpl item) argument
[all...]
H A DSubMenuBuilder.java17 package com.android.internal.view.menu;
27 * The model for a sub menu, which is an extension of the menu. Most methods are proxied to
28 * the parent menu.
80 boolean dispatchMenuItemSelected(MenuBuilder menu, MenuItem item) { argument
81 return super.dispatchMenuItemSelected(menu, item) ||
82 mParentMenu.dispatchMenuItemSelected(menu, item);
/frameworks/base/tests/MusicServiceDemo/src/com/example/android/musicservicedemo/
H A DMainActivity.java56 public boolean onCreateOptionsMenu(Menu menu) { argument
58 // Inflate the menu; this adds items to the action bar if it is present.
59 //getMenuInflater().inflate(R.menu.main, menu);
/frameworks/base/tests/RenderScriptTests/PerfTest/src/com/android/perftest/
H A DRsBench.java86 public boolean onCreateOptionsMenu(Menu menu) { argument
88 inflater.inflate(R.menu.loader_menu, menu);
/frameworks/base/tools/layoutlib/bridge/tests/res/testApp/MyApplication/build/intermediates/classes/debug/com/android/layoutlib/test/myapplication/
H A DR$menu.class ... android.layoutlib.test.myapplication.R$menu extends java.lang.Object { public static final int ...
/frameworks/base/tools/layoutlib/bridge/tests/res/testApp/MyApplication/src/main/java/com/android/layoutlib/test/myapplication/
H A DMyActivity.java18 public boolean onCreateOptionsMenu(Menu menu) { argument
19 // Inflate the menu; this adds items to the action bar if it is present.
20 getMenuInflater().inflate(R.menu.my, menu);

Completed in 485 milliseconds

123456