Code example for ActionMode

Methods: finish

0
            actionMode = null;
          } 
 
            @Override 
          public boolean onActionItemClicked(ActionMode mode, MenuItem item) {
            mode.finish();
            return contextualActionModeCallback.onClick(item.getItemId(), position, id);
          } 
        }); 
        CharSequence text = contextualActionModeCallback.getCaption(view);
        if (text != null) {
          actionMode.setTitle(text);
        } 
        view.setSelected(true);
        return true; 
      } 
    }); 
  }; 
   
  @Override 
  public void configureMapViewContextualMenu(final SupportMapFragment fragment,