Searched refs:menu (Results 1 - 25 of 168) sorted by relevance

1234567

/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 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
/frameworks/base/core/tests/coretests/src/android/view/
H A DListContextMenu.java98 public boolean onCreateOptionsMenu(Menu menu) { argument
99 MenuItem item = menu.add(0, 0, 0, "Really long menu item name");
103 SubMenu sm = menu.addSubMenu(0, 0, 0, "The 2nd item, a sub menu").setIcon(R.drawable.black_square_stretchable);
105 item.setTitleCondensed("Sub menu");
110 menu.add(0, 0, 0, "Item 3");
111 menu.add(0, 0, 0, "Item 4");
112 menu.add(0, 0, 0, "Item 5");
113 menu
130 onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) argument
184 onOptionsMenuClosed(Menu menu) argument
196 onContextMenuClosed(Menu menu) argument
[all...]
/frameworks/base/core/java/com/android/internal/view/menu/
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 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...]
/frameworks/support/v7/appcompat/src/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 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...]
/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);
/frameworks/base/tools/layoutlib/bridge/src/com/android/internal/view/menu/
H A DBridgeMenuItemImpl.java17 package com.android.internal.view.menu;
38 * Instantiates this menu item.
40 BridgeMenuItemImpl(MenuBuilder menu, int group, int id, int categoryOrder, int ordering, argument
42 super(menu, group, id, categoryOrder, ordering, title, showAsAction);
43 Context context = menu.getContext();
55 // If the menu item has an associated action provider view,
/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/support/design/src/android/support/design/internal/
H A DNavigationSubMenu.java20 import android.support.v7.internal.view.menu.MenuBuilder;
21 import android.support.v7.internal.view.menu.MenuItemImpl;
22 import android.support.v7.internal.view.menu.SubMenuBuilder;
26 * This is a {@link SubMenuBuilder} that it notifies the parent {@link NavigationMenu} of its menu
33 public NavigationSubMenu(Context context, NavigationMenu menu, MenuItemImpl item) { argument
34 super(context, menu, item);
H A DNavigationMenu.java20 import android.support.v7.internal.view.menu.MenuBuilder;
21 import android.support.v7.internal.view.menu.MenuItemImpl;
22 import android.support.v7.internal.view.menu.SubMenuBuilder;
27 * {@link SubMenuBuilder} when a sub menu is created.
H A DNavigationMenuView.java20 import android.support.v7.internal.view.menu.MenuBuilder;
21 import android.support.v7.internal.view.menu.MenuView;
43 public void initialize(MenuBuilder menu) { argument
/frameworks/base/tests/HierarchyViewerTest/src/com/android/test/hierarchyviewer/
H A DMainActivity.java24 public boolean onCreateOptionsMenu(Menu menu) { argument
25 // Inflate the menu; this adds items to the action bar if it is present.
26 getMenuInflater().inflate(R.menu.menu_main, menu);
/frameworks/data-binding/integration-tests/App With Spaces/app/src/main/java/android/databinding/appwithspaces/
H A DMainActivity.java41 public boolean onCreateOptionsMenu(Menu menu) { argument
42 // Inflate the menu; this adds items to the action bar if it is present.
43 getMenuInflater().inflate(R.menu.menu_main, menu);
/frameworks/data-binding/integration-tests/MultiModuleTestApp/app/src/main/java/android/databinding/multimoduletestapp/
H A DMainActivity.java41 public boolean onCreateOptionsMenu(Menu menu) { argument
42 // Inflate the menu; this adds items to the action bar if it is present.
43 getMenuInflater().inflate(R.menu.menu_main, menu);
/frameworks/data-binding/integration-tests/MultiModuleTestApp/testlibrary/src/main/java/android/databinding/testlibrary/
H A DTestLibraryMainActivity.java37 public boolean onCreateOptionsMenu(Menu menu) { argument
38 // Inflate the menu; this adds items to the action bar if it is present.
39 getMenuInflater().inflate(R.menu.menu_test_library_main, menu);
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DListActivity.java98 public void onCreateContextMenu(ContextMenu menu, View v, ContextMenu.ContextMenuInfo menuInfo) { argument
99 super.onCreateContextMenu(menu, v, menuInfo);
100 menu.setHeaderTitle("Context menu");
101 menu.add("List item 1");
102 menu.add("List item 2");
103 menu.add("List item 3");
H A DTransparentListActivity.java96 public void onCreateContextMenu(ContextMenu menu, View v, ContextMenu.ContextMenuInfo menuInfo) { argument
97 super.onCreateContextMenu(menu, v, menuInfo);
98 menu.setHeaderTitle("Context menu");
99 menu.add("List item 1");
100 menu.add("List item 2");
101 menu.add("List item 3");
/frameworks/opt/photoviewer/activity/src/com/android/ex/photo/
H A DPhotoViewActivity.java97 public boolean onCreateOptionsMenu(Menu menu) { argument
98 return mController.onCreateOptionsMenu(menu) || super.onCreateOptionsMenu(menu);
102 public boolean onPrepareOptionsMenu(Menu menu) { argument
103 return mController.onPrepareOptionsMenu(menu) || super.onPrepareOptionsMenu(menu);
/frameworks/opt/photoviewer/appcompat/src/com/android/ex/photo/
H A DPhotoViewActivity.java97 public boolean onCreateOptionsMenu(Menu menu) { argument
98 return mController.onCreateOptionsMenu(menu) || super.onCreateOptionsMenu(menu);
102 public boolean onPrepareOptionsMenu(Menu menu) { argument
103 return mController.onPrepareOptionsMenu(menu) || super.onPrepareOptionsMenu(menu);
/frameworks/base/core/java/android/view/
H A DWindowCallbackWrapper.java75 public boolean onCreatePanelMenu(int featureId, Menu menu) { argument
76 return mWrapped.onCreatePanelMenu(featureId, menu);
80 public boolean onPreparePanel(int featureId, View view, Menu menu) { argument
81 return mWrapped.onPreparePanel(featureId, view, menu);
85 public boolean onMenuOpened(int featureId, Menu menu) { argument
86 return mWrapped.onMenuOpened(featureId, menu);
120 public void onPanelClosed(int featureId, Menu menu) { argument
121 mWrapped.onPanelClosed(featureId, menu);

Completed in 833 milliseconds

1234567