Lines Matching refs:menu

1674      * Use with {@link #setDefaultKeyMode} to execute a menu shortcut in
1677 * <p>That is, the user does not need to hold down the menu key to execute menu shortcuts.
1710 * menu without requiring the menu key be held down
1715 * handling of system keys, such as the "back" and "menu" keys, and your
2107 * menu behavior.
2121 public boolean onCreatePanelMenu(int featureId, Menu menu) {
2123 return onCreateOptionsMenu(menu);
2137 public boolean onPreparePanel(int featureId, View view, Menu menu) {
2138 if (featureId == Window.FEATURE_OPTIONS_PANEL && menu != null) {
2139 boolean goforit = onPrepareOptionsMenu(menu);
2140 return goforit && menu.hasVisibleItems();
2150 public boolean onMenuOpened(int featureId, Menu menu) {
2190 public void onPanelClosed(int featureId, Menu menu) {
2193 onOptionsMenuClosed(menu);
2197 onContextMenuClosed(menu);
2203 * Initialize the contents of the Activity's standard options menu. You
2204 * should place your menu items in to <var>menu</var>.
2206 * <p>This is only called once, the first time the options menu is
2207 * displayed. To update the menu every time it is displayed, see
2210 * <p>The default implementation populates the menu with standard system
2211 * menu items. These are placed in the {@link Menu#CATEGORY_SYSTEM} group so that
2212 * they will be correctly ordered with application-defined menu items.
2215 * <p>You can safely hold on to <var>menu</var> (and any items created
2219 * <p>When you add items to the menu, you can implement the Activity's
2222 * @param menu The options menu in which you place your items.
2224 * @return You must return true for the menu to be displayed;
2230 public boolean onCreateOptionsMenu(Menu menu) {
2232 return mParent.onCreateOptionsMenu(menu);
2238 * Prepare the Screen's standard options menu to be displayed. This is
2239 * called right before the menu is shown, every time it is shown. You can
2243 * <p>The default implementation updates the system menu items based on the
2247 * @param menu The options menu as last shown or first initialized by
2250 * @return You must return true for the menu to be displayed;
2255 public boolean onPrepareOptionsMenu(Menu menu) {
2257 return mParent.onPrepareOptionsMenu(menu);
2263 * This hook is called whenever an item in your options menu is selected.
2271 * perform the default menu handling.
2273 * @param item The menu item that was selected.
2275 * @return boolean Return false to allow normal menu processing to
2288 * This hook is called whenever the options menu is being closed (either by the user canceling
2289 * the menu with the back/menu button, or when an item is selected).
2291 * @param menu The options menu as last shown or first initialized by
2294 public void onOptionsMenuClosed(Menu menu) {
2296 mParent.onOptionsMenuClosed(menu);
2301 * Programmatically opens the options menu. If the options menu is already
2309 * Progammatically closes the options menu. If the options menu is already
2317 * Called when a context menu for the {@code view} is about to be shown.
2319 * time the context menu is about to be shown and should be populated for
2326 * It is not safe to hold onto the context menu after this method returns.
2329 public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) {
2333 * Registers a context menu to be shown for the given view (multiple views
2334 * can show the context menu). This method will set the
2337 * called when it is time to show the context menu.
2340 * @param view The view that should show a context menu.
2347 * Prevents a context menu to be shown for the given view. This method will remove the
2351 * @param view The view that should stop showing a context menu.
2358 * Programmatically opens the context menu for a particular {@code view}.
2362 * @param view The view to show the context menu for.
2369 * Programmatically closes the most recently opened context menu, if showing.
2376 * This hook is called whenever an item in a context menu is selected. The
2383 * View that added this menu item.
2386 * the default menu handling.
2388 * @param item The context menu item that was selected.
2389 * @return boolean Return false to allow normal context menu processing to
2400 * This hook is called whenever the context menu is being closed (either by
2401 * the user canceling the menu with the back/menu button, or when an item is
2404 * @param menu The context menu that is being closed.
2406 public void onContextMenuClosed(Menu menu) {
2408 mParent.onContextMenuClosed(menu);
2558 * menu item, search button, or other widgets within your activity. Unless overidden,
3761 // send out any status bar / menu notifications the client makes.
3770 // Now really resume, and install the current status bar and menu.