Searched refs:menu (Results 76 - 100 of 145) sorted by relevance

123456

/frameworks/support/v7/appcompat/src/android/support/v7/widget/
H A DActionMenuView.java21 import android.support.v7.internal.view.menu.ActionMenuItemView;
22 import android.support.v7.internal.view.menu.MenuBuilder;
23 import android.support.v7.internal.view.menu.MenuItemImpl;
24 import android.support.v7.internal.view.menu.MenuPresenter;
25 import android.support.v7.internal.view.menu.MenuView;
38 * ActionMenuView is a presentation of a series of menu options as a View. It provides
40 * items in an overflow menu. This allows applications to present packs of actions inline with
89 * the same theme as the action menu view itself.
107 * 0 if menus are inflated against the action menu view theme
115 * @param presenter Menu presenter used to display popup menu
605 initialize(MenuBuilder menu) argument
737 onMenuItemSelected(MenuBuilder menu, MenuItem item) argument
743 onMenuModeChange(MenuBuilder menu) argument
752 onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing) argument
[all...]
H A DToolbar.java34 import android.support.v7.internal.view.menu.MenuBuilder;
35 import android.support.v7.internal.view.menu.MenuItemImpl;
36 import android.support.v7.internal.view.menu.MenuPresenter;
37 import android.support.v7.internal.view.menu.MenuView;
38 import android.support.v7.internal.view.menu.SubMenuBuilder;
79 * <li><em>A navigation button.</em> This may be an Up arrow, navigation menu toggle, close,
95 * <li><em>An {@link ActionMenuView action menu}.</em> The menu of actions will pin to the
98 * frequent, important or typical</a> actions along with an optional overflow menu for
337 * Check whether the overflow menu i
370 setMenu(MenuBuilder menu, ActionMenuPresenter outerPresenter) argument
1909 initForMenu(Context context, MenuBuilder menu) argument
1956 onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing) argument
1965 expandItemActionView(MenuBuilder menu, MenuItemImpl item) argument
1992 collapseItemActionView(MenuBuilder menu, MenuItemImpl item) argument
[all...]
/frameworks/base/core/java/com/android/internal/view/menu/
H A DContextMenuBuilder.java17 package com.android.internal.view.menu;
29 * Most clients of the menu framework will never need to touch this
37 * call {@link #show(View, IBinder)} which will populate the menu
38 * with a view's context menu items and show the context menu.
67 * Shows this context menu, allowing the optional original view (and its
71 * context menu.
73 * menu's window.
74 * @return If the context menu was shown, the {@link MenuDialogHelper} for
80 // the context menu
[all...]
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/
H A DTrackerActivity.java53 * - enable/disable "start service" and "stop service" menu items as
76 * Builds the menu
78 * @param menu - menu to add items to
81 public boolean onCreateOptionsMenu(Menu menu) { argument
83 menuInflater.inflate(R.menu.menu, menu);
88 * Handles menu item selection
90 * @param item - the selected menu ite
[all...]
/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/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
H A DFrameworkActionBar.java25 import com.android.internal.view.menu.MenuBuilder;
26 import com.android.internal.view.menu.MenuItemImpl;
141 MenuBuilder menu = mActionBar.getMenuBuilder();
142 OverflowMenuAdapter adapter = new OverflowMenuAdapter(menu, mActionBar.getPopupContext());
191 // Copied from com.android.internal.view.menu.MenuPopHelper.measureContentWidth()
/frameworks/support/v7/appcompat/src/android/support/v7/internal/view/menu/
H A DMenuItemWrapperJB.java17 package android.support.v7.internal.view.menu;
H A DMenuWrapperFactory.java17 package android.support.v7.internal.view.menu;
H A DSubMenuWrapperICS.java17 package android.support.v7.internal.view.menu;
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/
H A DSelectPrinterActivity.java141 public boolean onCreateOptionsMenu(Menu menu) { argument
142 super.onCreateOptionsMenu(menu);
144 getMenuInflater().inflate(R.menu.select_printer_activity, menu);
146 MenuItem searchItem = menu.findItem(R.id.action_search);
179 menu.removeItem(R.id.action_add_printer);
186 public void onCreateContextMenu(ContextMenu menu, View view, ContextMenuInfo menuInfo) { argument
191 menu.setHeaderTitle(printer.getName());
193 // Add the select menu item if applicable.
195 MenuItem selectItem = menu
[all...]
/frameworks/base/core/java/android/app/
H A DFragment.java461 // If set this fragment has menu items to contribute.
464 // Set to true to allow the fragment's menu to be shown.
971 * the options menu by receiving a call to {@link #onCreateOptionsMenu}
974 * @param hasMenu If true, the fragment has menu items to contribute.
986 * Set a hint for whether this fragment's menu should be visible. This
988 * hierarchy so that the user can not currently seen it, so any menu items
991 * @param menuVisible The default is true, meaning the fragment's menu will
992 * be shown as usual. If false, the user will not see the menu.
1483 * Initialize the contents of the Activity's standard options menu. You
1484 * should place your menu item
1495 onCreateOptionsMenu(Menu menu, MenuInflater inflater) argument
1512 onPrepareOptionsMenu(Menu menu) argument
1554 onOptionsMenuClosed(Menu menu) argument
1574 onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) argument
2128 performCreateOptionsMenu(Menu menu, MenuInflater inflater) argument
2142 performPrepareOptionsMenu(Menu menu) argument
2186 performOptionsMenuClosed(Menu menu) argument
[all...]
H A DExpandableListActivity.java163 * Override this to populate the context menu when an item is long pressed. menuInfo
172 public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) { argument
/frameworks/support/v4/java/android/support/v4/app/
H A DFragment.java275 // If set this fragment has menu items to contribute.
278 // Set to true to allow the fragment's menu to be shown.
812 * the options menu by receiving a call to {@link #onCreateOptionsMenu}
815 * @param hasMenu If true, the fragment has menu items to contribute.
827 * Set a hint for whether this fragment's menu should be visible. This
829 * hierarchy so that the user can not currently seen it, so any menu items
832 * @param menuVisible The default is true, meaning the fragment's menu will
833 * be shown as usual. If false, the user will not see the menu.
1245 * Initialize the contents of the Activity's standard options menu. You
1246 * should place your menu item
1257 onCreateOptionsMenu(Menu menu, MenuInflater inflater) argument
1274 onPrepareOptionsMenu(Menu menu) argument
1316 onOptionsMenuClosed(Menu menu) argument
1336 onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) argument
1863 performCreateOptionsMenu(Menu menu, MenuInflater inflater) argument
1877 performPrepareOptionsMenu(Menu menu) argument
1921 performOptionsMenuClosed(Menu menu) argument
[all...]
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
H A DDocumentsActivity.java459 public boolean onCreateOptionsMenu(Menu menu) { argument
460 super.onCreateOptionsMenu(menu);
461 getMenuInflater().inflate(R.menu.activity, menu);
465 for (int i = 0; i < menu.size(); i++) {
466 final MenuItem item = menu.getItem(i);
477 final MenuItem searchMenu = menu.findItem(R.id.menu_search);
536 public boolean onPrepareOptionsMenu(Menu menu) { argument
537 super.onPrepareOptionsMenu(menu);
544 final MenuItem createDir = menu
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/
H A DCommandParams.java145 SelectItemParams(CommandDetails cmdDet, Menu menu, boolean loadTitleIcon) { argument
147 mMenu = menu;
H A DCommandParamsFactory.java554 Menu menu = new Menu();
562 menu.title = ValueParser.retrieveAlphaId(ctlv);
568 menu.items.add(ValueParser.retrieveItem(ctlv));
574 // We must have at least one menu item.
575 if (menu.items.size() == 0) {
583 menu.defaultItem = ValueParser.retrieveItemId(ctlv) - 1;
590 menu.titleIconSelfExplanatory = titleIconId.selfExplanatory;
597 menu.itemsIconSelfExplanatory = itemsIconId.selfExplanatory;
603 menu.presentationType = PresentationType.DATA_VALUES;
605 menu
[all...]
/frameworks/base/core/java/android/view/
H A DViewParent.java172 * Bring up a context menu for the specified view or its ancestors.
177 * then it should override this and show the context menu.</p>
179 * @param originalView The source view where the context menu was first invoked
180 * @return true if a context menu was displayed
185 * Have the parent populate the specified context menu if it has anything to
188 * @param menu The menu to populate
190 public void createContextMenu(ContextMenu menu); argument
/frameworks/base/packages/CaptivePortalLogin/src/com/android/captiveportallogin/
H A DCaptivePortalLoginActivity.java176 public boolean onCreateOptionsMenu(Menu menu) { argument
177 getMenuInflater().inflate(R.menu.captive_portal_login, menu);
/frameworks/base/samples/training/network-usage/src/com/example/android/networkusage/
H A DNetworkActivity.java166 // Populates the activity's options menu.
168 public boolean onCreateOptionsMenu(Menu menu) { argument
170 inflater.inflate(R.menu.mainmenu, menu);
174 // Handles the user's menu selection.
/frameworks/base/tests/BiDiTests/src/com/android/bidi/
H A DBiDiTestActivity.java156 public boolean onCreateOptionsMenu(Menu menu) { argument
158 inflater.inflate(R.menu.main_menu, menu);
/frameworks/base/tests/OneMedia/src/com/android/onemedia/
H A DOnePlayerActivity.java90 public boolean onCreateOptionsMenu(Menu menu) { argument
91 // Inflate the menu; this adds items to the action bar if it is present.
92 getMenuInflater().inflate(R.menu.main, menu);
/frameworks/base/core/java/android/widget/
H A DToolbar.java42 import com.android.internal.view.menu.MenuBuilder;
43 import com.android.internal.view.menu.MenuItemImpl;
44 import com.android.internal.view.menu.MenuPresenter;
45 import com.android.internal.view.menu.MenuView;
46 import com.android.internal.view.menu.SubMenuBuilder;
67 * <li><em>A navigation button.</em> This may be an Up arrow, navigation menu toggle, close,
85 * <li><em>An {@link ActionMenuView action menu}.</em> The menu of actions will pin to the
88 * frequent, important or typical</a> actions along with an optional overflow menu for
324 * Check whether the overflow menu i
357 setMenu(MenuBuilder menu, ActionMenuPresenter outerPresenter) argument
1877 initForMenu(Context context, MenuBuilder menu) argument
1924 onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing) argument
1933 expandItemActionView(MenuBuilder menu, MenuItemImpl item) argument
1960 collapseItemActionView(MenuBuilder menu, MenuItemImpl item) argument
[all...]
/frameworks/rs/java/tests/ImageProcessing_jb/src/com/android/rs/image/
H A DIPControlsJB.java94 public boolean onCreateOptionsMenu(Menu menu) { argument
95 // Inflate the menu items for use in the action bar
97 inflater.inflate(R.menu.main_activity_actions, menu);
99 MenuItem searchItem = menu.findItem(R.id.action_res);
118 return super.onCreateOptionsMenu(menu);
/frameworks/base/docs/html/tools/
H A Dtools_toc.cs16 <!-- Android Studio menu-->
27 </li><!-- End of Android Studio menu -->
30 <!-- Workflow menu-->
208 <!-- Build System menu-->
225 <!-- Support Library menu-->
237 <!-- Revision menu-->
277 <!-- Eclipse ADT menu-->
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DNavigationBarView.java259 return mCurrentView.findViewById(R.id.menu);
321 // Update menu button in case the IME state has changed.
536 View menu = navBar.findViewById(R.id.menu);
538 if (menu != null) {
539 FrameLayout.LayoutParams lp = (FrameLayout.LayoutParams) menu.getLayoutParams();
541 menu.setLayoutParams(lp);
643 pw.println(String.format(" disabled=0x%08x vertical=%s menu=%s",
651 dumpButton(pw, "menu", getMenuButton());

Completed in 2917 milliseconds

123456