Code example for ActionMode

Methods: setSubtitlesetTitle

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) {
        } 
Contextual code suggestions in your IDE  Get Codota for Java