Code example for ActionMode

Methods: setTitle

0
 
    private class SampleMultiChoiceModeListener implements MultiChoiceModeListener {
 
        @Override 
        public boolean onCreateActionMode(ActionMode mode, Menu menu) {
            mode.setTitle(getSelectedItemsString());
            return true; 
        } 
 
        @Override 
        public boolean onPrepareActionMode(ActionMode mode, Menu menu) {
            return false; 
        } 
         
        @Override 
        public boolean onActionItemClicked(ActionMode mode, MenuItem item) {
            return false; 
        } 
 
        @Override 
        public void onItemCheckedStateChanged(ActionMode mode, int position, long id,