Lines Matching refs:menu

275     // 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 items in to <var>menu</var>. For this method
1251 * @param menu The options menu in which you place your items.
1257 public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
1261 * Prepare the Screen's standard options menu to be displayed. This is
1262 * called right before the menu is shown, every time it is shown. You can
1268 * @param menu The options menu as last shown or first initialized by
1274 public void onPrepareOptionsMenu(Menu menu) {
1278 * Called when this fragment's option menu items are no longer being
1279 * included in the overall options menu. Receiving this call means that
1280 * the menu needed to be rebuilt, but this fragment's items were not
1281 * included in the newly built menu (its {@link #onCreateOptionsMenu(Menu, MenuInflater)}
1288 * This hook is called whenever an item in your options menu is selected.
1296 * perform the default menu handling.
1298 * @param item The menu item that was selected.
1300 * @return boolean Return false to allow normal menu processing to
1310 * This hook is called whenever the options menu is being closed (either by the user canceling
1311 * the menu with the back/menu button, or when an item is selected).
1313 * @param menu The options menu as last shown or first initialized by
1316 public void onOptionsMenuClosed(Menu menu) {
1320 * Called when a context menu for the {@code view} is about to be shown.
1322 * time the context menu is about to be shown and should be populated for
1333 * It is not safe to hold onto the context menu after this method returns.
1336 public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) {
1337 getActivity().onCreateContextMenu(menu, v, menuInfo);
1341 * Registers a context menu to be shown for the given view (multiple views
1342 * can show the context menu). This method will set the
1345 * called when it is time to show the context menu.
1348 * @param view The view that should show a context menu.
1355 * Prevents a context menu to be shown for the given view. This method will
1359 * @param view The view that should stop showing a context menu.
1366 * This hook is called whenever an item in a context menu is selected. The
1373 * View that added this menu item.
1376 * the default menu handling.
1378 * @param item The context menu item that was selected.
1379 * @return boolean Return false to allow normal context menu processing to
1863 boolean performCreateOptionsMenu(Menu menu, MenuInflater inflater) {
1868 onCreateOptionsMenu(menu, inflater);
1871 show |= mChildFragmentManager.dispatchCreateOptionsMenu(menu, inflater);
1877 boolean performPrepareOptionsMenu(Menu menu) {
1882 onPrepareOptionsMenu(menu);
1885 show |= mChildFragmentManager.dispatchPrepareOptionsMenu(menu);
1921 void performOptionsMenuClosed(Menu menu) {
1924 onOptionsMenuClosed(menu);
1927 mChildFragmentManager.dispatchOptionsMenuClosed(menu);