Lines Matching refs:menu

2092      * a traditional window decor action bar. The toolbar's menu will be populated with the
2093 * Activity's options menu and the navigation button will be wired through the standard
2094 * {@link android.R.id#home home} menu select action.</p>
2265 * Use with {@link #setDefaultKeyMode} to execute a menu shortcut in
2268 * <p>That is, the user does not need to hold down the menu key to execute menu shortcuts.
2301 * menu without requiring the menu key be held down
2306 * handling of system keys, such as the "back" and "menu" keys, and your
2491 * {@link MenuItem#setShortcut(char, char) shortcut} property of menu items.
2694 // Let action bars open menus in response to the menu key prioritized over
2806 * menu behavior.
2821 public boolean onCreatePanelMenu(int featureId, Menu menu) {
2823 boolean show = onCreateOptionsMenu(menu);
2824 show |= mFragments.dispatchCreateOptionsMenu(menu, getMenuInflater());
2839 public boolean onPreparePanel(int featureId, View view, Menu menu) {
2840 if (featureId == Window.FEATURE_OPTIONS_PANEL && menu != null) {
2841 boolean goforit = onPrepareOptionsMenu(menu);
2842 goforit |= mFragments.dispatchPrepareOptionsMenu(menu);
2853 public boolean onMenuOpened(int featureId, Menu menu) {
2859 Log.e(TAG, "Tried to open action bar menu with no action bar");
2924 public void onPanelClosed(int featureId, Menu menu) {
2927 mFragments.dispatchOptionsMenuClosed(menu);
2928 onOptionsMenuClosed(menu);
2932 onContextMenuClosed(menu);
2943 * Declare that the options menu has changed, so should be recreated.
2955 * Initialize the contents of the Activity's standard options menu. You
2956 * should place your menu items in to <var>menu</var>.
2958 * <p>This is only called once, the first time the options menu is
2959 * displayed. To update the menu every time it is displayed, see
2962 * <p>The default implementation populates the menu with standard system
2963 * menu items. These are placed in the {@link Menu#CATEGORY_SYSTEM} group so that
2964 * they will be correctly ordered with application-defined menu items.
2967 * <p>You can safely hold on to <var>menu</var> (and any items created
2971 * <p>When you add items to the menu, you can implement the Activity's
2974 * @param menu The options menu in which you place your items.
2976 * @return You must return true for the menu to be displayed;
2982 public boolean onCreateOptionsMenu(Menu menu) {
2984 return mParent.onCreateOptionsMenu(menu);
2990 * Prepare the Screen's standard options menu to be displayed. This is
2991 * called right before the menu is shown, every time it is shown. You can
2995 * <p>The default implementation updates the system menu items based on the
2999 * @param menu The options menu as last shown or first initialized by
3002 * @return You must return true for the menu to be displayed;
3007 public boolean onPrepareOptionsMenu(Menu menu) {
3009 return mParent.onPrepareOptionsMenu(menu);
3015 * This hook is called whenever an item in your options menu is selected.
3023 * perform the default menu handling.</p>
3025 * @param item The menu item that was selected.
3027 * @return boolean Return false to allow normal menu processing to
3144 * This hook is called whenever the options menu is being closed (either by the user canceling
3145 * the menu with the back/menu button, or when an item is selected).
3147 * @param menu The options menu as last shown or first initialized by
3150 public void onOptionsMenuClosed(Menu menu) {
3152 mParent.onOptionsMenuClosed(menu);
3157 * Programmatically opens the options menu. If the options menu is already
3168 * Progammatically closes the options menu. If the options menu is already
3178 * Called when a context menu for the {@code view} is about to be shown.
3180 * time the context menu is about to be shown and should be populated for
3187 * It is not safe to hold onto the context menu after this method returns.
3190 public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) {
3194 * Registers a context menu to be shown for the given view (multiple views
3195 * can show the context menu). This method will set the
3198 * called when it is time to show the context menu.
3201 * @param view The view that should show a context menu.
3208 * Prevents a context menu to be shown for the given view. This method will remove the
3212 * @param view The view that should stop showing a context menu.
3219 * Programmatically opens the context menu for a particular {@code view}.
3223 * @param view The view to show the context menu for.
3230 * Programmatically closes the most recently opened context menu, if showing.
3239 * This hook is called whenever an item in a context menu is selected. The
3246 * View that added this menu item.
3249 * the default menu handling.
3251 * @param item The context menu item that was selected.
3252 * @return boolean Return false to allow normal context menu processing to
3263 * This hook is called whenever the context menu is being closed (either by
3264 * the user canceling the menu with the back/menu button, or when an item is
3267 * @param menu The context menu that is being closed.
3269 public void onContextMenuClosed(Menu menu) {
3271 mParent.onContextMenuClosed(menu);
3502 * menu item, search button, or other widgets within your activity. Unless overidden,
6083 // Now really resume, and install the current status bar and menu.