@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;
 }
Exemplo n.º 2
0
 @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;
 }
Exemplo n.º 3
0
 @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;
 }
Exemplo n.º 4
0
 @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;
 }
Exemplo n.º 5
0
 // 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;
 }
Exemplo n.º 6
0
    @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;
 }
Exemplo n.º 8
0
 @Override
 public boolean onCreateActionMode(ActionMode mode, Menu menu) {
   // TODO Auto-generated method stub
   mode.getMenuInflater().inflate(R.menu.delete_history_menu, menu);
   return true;
 }
Exemplo n.º 9
0
 @Override
 public boolean onCreateActionMode(ActionMode mode, Menu menu) {
   mode.getMenuInflater().inflate(R.menu.library_selection, menu);
   adapter.setSelectionMode(FlexibleAdapter.MODE_MULTI);
   return true;
 }
Exemplo n.º 10
0
 @Override
 public boolean onCreateActionMode(ActionMode mode, Menu menu) {
   mode.getMenuInflater().inflate(R.menu.menu_download_man_action_mode, menu);
   return true;
 }
Exemplo n.º 11
0
 @Override
 public boolean onCreateActionMode(ActionMode mode, Menu menu) {
   mode.getMenuInflater().inflate(R.menu.selected_talk, menu);
   return true;
 }