@Override
 public boolean onCreateActionMode(ActionMode actionMode, Menu menu) {
   // Inflate the menu resource (res/menu/context_cheeses.xml) which will be displayed
   // in the action mode
   actionMode.getMenuInflater().inflate(R.menu.context_cheeses, menu);
   return true;
 }
 @Override
 public boolean onCreateActionMode(ActionMode actionMode, Menu menu) {
   showFab(false);
   MenuInflater inflater = actionMode.getMenuInflater();
   inflater.inflate(R.menu.menu_edit, menu);
   mListener.onLockDrawer(true);
   return true;
 }
 @Override
 public boolean onCreateActionMode(ActionMode mode, Menu menu) {
   MenuInflater inflater = mode.getMenuInflater();
   inflater.inflate(R.menu.menu_remove, menu);
   showFab(false);
   mActionModeDestroyed = false;
   mFromMenu = false;
   mListener.onLockDrawer(true);
   return true;
 }
 @Override
 public boolean onCreateActionMode(ActionMode mode, Menu menu) {
   mode.getMenuInflater().inflate(R.menu.recent_action_mode, menu);
   recyclerView.setSwipe(false);
   adapter.setSelectionMode(true);
   // Change status bar color to be dark to correspond to dark toolbar color.
   getActivity()
       .getWindow()
       .setStatusBarColor(ContextCompat.getColor(getActivity(), R.color.grey900));
   return true;
 }
 // Called when the action mode is
 // created; startActionMode() was
 // called
 @Override
 public boolean onCreateActionMode(final ActionMode mode, final Menu menu) {
   // Inflate a menu resource
   // providing context menu items
   final MenuInflater inflater = mode.getMenuInflater();
   final boolean b = handleCabCreateMenu(inflater, menu);
   if (b) {
     TaskFragmentV8.this.mActionMode = mode;
     TaskFragmentV8.this.mMenu = menu;
   }
   return b;
 }
    @Override
    public boolean onCreateActionMode(ActionMode mode, Menu menu) {
      if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
        getWindow()
            .setStatusBarColor(
                UIUtils.getThemeColorFromAttrOrRes(
                    BRTDrawerActivity.this,
                    R.attr.colorPrimaryDark,
                    R.color.material_drawer_primary_dark));
      }

      mode.getMenuInflater().inflate(R.menu.cab, menu);
      return true;
    }
 @Override
 public boolean onCreateActionMode(ActionMode mode, Menu menu) {
   MenuInflater inflater = mode.getMenuInflater();
   inflater.inflate(R.menu.conversations_secondary, menu);
   return true;
 }
 @Override
 public boolean onCreateActionMode(ActionMode mode, Menu menu) {
   // TODO Auto-generated method stub
   mode.getMenuInflater().inflate(R.menu.delete_history_menu, menu);
   return true;
 }
 @Override
 public boolean onCreateActionMode(ActionMode mode, Menu menu) {
   mode.getMenuInflater().inflate(R.menu.library_selection, menu);
   adapter.setSelectionMode(FlexibleAdapter.MODE_MULTI);
   return true;
 }
 @Override
 public boolean onCreateActionMode(ActionMode mode, Menu menu) {
   mode.getMenuInflater().inflate(R.menu.menu_download_man_action_mode, menu);
   return true;
 }
Exemple #11
0
 @Override
 public boolean onCreateActionMode(ActionMode mode, Menu menu) {
   mode.getMenuInflater().inflate(R.menu.selected_talk, menu);
   return true;
 }