Code example for ActionMode

Methods: finish

0
      EditorActionModeCallback next=chains.get(item.getItemId());
 
      if (next != null) {
        next.setSelection(new Selection(editor));
        host.startActionMode((EditorActionModeCallback.Native)next);
        mode.finish();
 
        return(true); 
      } 
       
      mode.finish();
 
      return(listener.doAction(item.getItemId()));
    } 
  } 
 
  public static class ABS extends EditorActionModeCallback implements 
      com.actionbarsherlock.view.ActionMode.Callback { 
    Activity host=null;
 
    public ABS(Activity host, int menuResource, RichEditText editor,