Code example for MenuInflater

Methods: inflate

0
 
    @Override 
    public boolean onCreateActionMode(ActionMode mode, Menu menu) {
      MenuInflater inflater=mode.getMenuInflater();
 
      inflater.inflate(menuResource, menu);
      listener.setIsShowing(true);
 
      return(true); 
    } 
 
    @Override 
    public boolean onPrepareActionMode(ActionMode mode, Menu menu) {
      if (selection != null) {
        selection.apply(editor);
      } 
 
      return(false); 
    } 
 
    @Override