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

1234567891011>>

/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);
/frameworks/base/core/java/android/widget/
H A DMenuItemHoverListener.java6 import com.android.internal.view.menu.MenuBuilder;
9 * An interface notified when a menu item is hovered. Useful for cases when hover should trigger
16 * Called when hover exits a menu item.
21 * @param menu the item's parent menu
22 * @param item the hovered menu item
24 void onItemHoverExit(@NonNull MenuBuilder menu, @NonNull MenuItem item); argument
27 * Called when hover enters a menu item.
29 * @param menu the item's parent menu
32 onItemHoverEnter(@onNull MenuBuilder menu, @NonNull MenuItem item) argument
[all...]
/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;
31 * Called by menu implementation to notify another component of open/close events.
35 * Called when a menu is closing.
36 * @param menu
39 public void onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing); argument
43 * of menu state so that it does not attempt to hide the action bar
54 * Initializes this presenter for the given context and menu.
61 * @param menu the menu to host, or {@code null} to clear the hosted menu
63 initForMenu(@onNull Context context, @Nullable MenuBuilder menu) argument
109 onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing) argument
124 expandItemActionView(MenuBuilder menu, MenuItemImpl item) argument
133 collapseItemActionView(MenuBuilder menu, MenuItemImpl item) argument
[all...]
H A DMenuHelper.java17 package com.android.internal.view.menu;
20 * Interface for a helper capable of presenting a menu.
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 DShowableListMenu.java17 package com.android.internal.view.menu;
22 * A list menu which can be shown and hidden and which is internally represented by a ListView.
32 * @return The internal ListView for the visible menu.
/frameworks/support/v7/appcompat/src/android/support/v7/view/menu/
H A DMenuPresenter.java17 package android.support.v7.view.menu;
36 * Called by menu implementation to notify another component of open/close events.
40 * Called when a menu is closing.
41 * @param menu
44 void onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing); argument
48 * of menu state so that it does not attempt to hide the action bar
59 * Initializes this presenter for the given context and menu.
66 * @param menu the menu to host, or {@code null} to clear the hosted menu
68 initForMenu(Context context, MenuBuilder menu) argument
114 onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing) argument
129 expandItemActionView(MenuBuilder menu, MenuItemImpl item) argument
138 collapseItemActionView(MenuBuilder menu, MenuItemImpl item) argument
[all...]
H A DMenuHelper.java17 package android.support.v7.view.menu;
20 * Interface for a helper capable of presenting a menu.
H A DBaseWrapper.java17 package android.support.v7.view.menu;
/frameworks/support/design/src/android/support/design/internal/
H A DNavigationSubMenu.java23 import android.support.v7.view.menu.MenuBuilder;
24 import android.support.v7.view.menu.MenuItemImpl;
25 import android.support.v7.view.menu.SubMenuBuilder;
28 * This is a {@link SubMenuBuilder} that it notifies the parent {@link NavigationMenu} of its menu
36 public NavigationSubMenu(Context context, NavigationMenu menu, MenuItemImpl item) { argument
37 super(context, menu, item);
/frameworks/support/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/app/
H A DActionBarShareActionProvider.java34 public boolean onCreateOptionsMenu(Menu menu) { argument
35 getMenuInflater().inflate(R.menu.action_bar_share_action_provider, menu);
40 protected boolean onPrepareOptionsPanel(View view, Menu menu) { argument
42 menu.findItem(R.id.menu_item_share_provider_action_bar));
H A DActionBarPreferences.java39 public boolean onCreateOptionsMenu(Menu menu) { argument
40 getMenuInflater().inflate(R.menu.actions, menu);
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/app/
H A DActionBarShareActionProvider.java34 public boolean onCreateOptionsMenu(Menu menu) { argument
35 getMenuInflater().inflate(R.menu.action_bar_share_action_provider, menu);
40 protected boolean onPrepareOptionsPanel(View view, Menu menu) { argument
42 menu.findItem(R.id.menu_item_share_provider_action_bar));
H A DActionBarPreferences.java39 public boolean onCreateOptionsMenu(Menu menu) { argument
40 getMenuInflater().inflate(R.menu.actions, menu);
/frameworks/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/support/v7/appcompat/src/android/support/v7/widget/
H A DMenuItemHoverListener.java23 import android.support.v7.view.menu.MenuBuilder;
27 * An interface notified when a menu item is hovered. Useful for cases when hover should trigger
35 * Called when hover exits a menu item.
40 * @param menu the item's parent menu
41 * @param item the hovered menu item
43 void onItemHoverExit(@NonNull MenuBuilder menu, @NonNull MenuItem item); argument
46 * Called when hover enters a menu item.
48 * @param menu the item's parent menu
51 onItemHoverEnter(@onNull MenuBuilder menu, @NonNull MenuItem item) argument
[all...]
/frameworks/support/v7/appcompat/tests/src/android/support/v7/app/
H A DAppCompatMenuItemShortcutsTestActivity.java26 public boolean onCreateOptionsMenu(Menu menu) { argument
28 inflater.inflate(R.menu.appcompat_menu_shortcut, menu);
H A DToolbarAppCompatActivity.java55 public boolean onCreateOptionsMenu(Menu menu) { argument
57 return super.onCreateOptionsMenu(menu);
61 public boolean onPrepareOptionsMenu(Menu menu) { argument
63 return super.onPrepareOptionsMenu(menu);
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/core/lifecycle/events/
H A DOnCreateOptionsMenu.java23 void onCreateOptionsMenu(Menu menu, MenuInflater inflater); argument
H A DOnPrepareOptionsMenu.java23 void onPrepareOptionsMenu(Menu menu); argument
/frameworks/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/support/v7/appcompat/src/android/support/v7/app/
H A DAppCompatDelegateImplN.java46 List<KeyboardShortcutGroup> data, Menu menu, int deviceId) {
48 if (panel != null && panel.menu != null) {
49 // The menu provided is one created by PhoneWindow which we don't actually use.
51 super.onProvideKeyboardShortcuts(data, panel.menu, deviceId);
53 // If we don't have a menu, jump pass through the original instead
54 super.onProvideKeyboardShortcuts(data, menu, deviceId);
45 onProvideKeyboardShortcuts( List<KeyboardShortcutGroup> data, Menu menu, int deviceId) argument

Completed in 726 milliseconds

1234567891011>>