Code example for ActionMode

Methods: setSubtitle, setTitle

0
 
    } 
 
    public class MultiChoiceModeListener implements GridView.MultiChoiceModeListener {
        public boolean onCreateActionMode(ActionMode mode, Menu menu) {
            mode.setTitle("Select Items");
            mode.setSubtitle("One item selected");
            return true; 
        } 
 
        public boolean onPrepareActionMode(ActionMode mode, Menu menu) {
            return true; 
        } 
 
        public boolean onActionItemClicked(ActionMode mode, MenuItem item) {
            return true; 
        } 
 
        public void onDestroyActionMode(ActionMode mode) {
        }