Lines Matching refs:menu

461     // 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 items in to <var>menu</var>. For this method
1489 * @param menu The options menu in which you place your items.
1495 public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
1499 * Prepare the Screen's standard options menu to be displayed. This is
1500 * called right before the menu is shown, every time it is shown. You can
1506 * @param menu The options menu as last shown or first initialized by
1512 public void onPrepareOptionsMenu(Menu menu) {
1516 * Called when this fragment's option menu items are no longer being
1517 * included in the overall options menu. Receiving this call means that
1518 * the menu needed to be rebuilt, but this fragment's items were not
1519 * included in the newly built menu (its {@link #onCreateOptionsMenu(Menu, MenuInflater)}
1526 * This hook is called whenever an item in your options menu is selected.
1534 * perform the default menu handling.
1536 * @param item The menu item that was selected.
1538 * @return boolean Return false to allow normal menu processing to
1548 * This hook is called whenever the options menu is being closed (either by the user canceling
1549 * the menu with the back/menu button, or when an item is selected).
1551 * @param menu The options menu as last shown or first initialized by
1554 public void onOptionsMenuClosed(Menu menu) {
1558 * Called when a context menu for the {@code view} is about to be shown.
1560 * time the context menu is about to be shown and should be populated for
1571 * It is not safe to hold onto the context menu after this method returns.
1574 public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) {
1575 getActivity().onCreateContextMenu(menu, v, menuInfo);
1579 * Registers a context menu to be shown for the given view (multiple views
1580 * can show the context menu). This method will set the
1583 * called when it is time to show the context menu.
1586 * @param view The view that should show a context menu.
1593 * Prevents a context menu to be shown for the given view. This method will
1597 * @param view The view that should stop showing a context menu.
1604 * This hook is called whenever an item in a context menu is selected. The
1611 * View that added this menu item.
1614 * the default menu handling.
1616 * @param item The context menu item that was selected.
1617 * @return boolean Return false to allow normal context menu processing to
2128 boolean performCreateOptionsMenu(Menu menu, MenuInflater inflater) {
2133 onCreateOptionsMenu(menu, inflater);
2136 show |= mChildFragmentManager.dispatchCreateOptionsMenu(menu, inflater);
2142 boolean performPrepareOptionsMenu(Menu menu) {
2147 onPrepareOptionsMenu(menu);
2150 show |= mChildFragmentManager.dispatchPrepareOptionsMenu(menu);
2186 void performOptionsMenuClosed(Menu menu) {
2189 onOptionsMenuClosed(menu);
2192 mChildFragmentManager.dispatchOptionsMenuClosed(menu);