Code example for ActionMode

Methods: setTitle

0
    } 
 
    @Override 
    public boolean onCreateActionMode(ActionMode mode, Menu menu)
    { 
        mode.setTitle(createTitle());
        return true; 
    } 
 
    @Override 
    public void onDestroyActionMode(ActionMode mode)
    { 
        mListener.onFinish();
        selectedItems.clear();
    } 
 
    public void finish() 
    { 
        mode.finish();
    }