Code example for Set

Methods: clear

0
    // 
    // ActionMode.Callback related methods 
    // 
 
    void onDestroyActionMode(ActionMode mode) {
        selection.clear();
        actionMode = null;
        owner.notifyDataSetChanged();
    } 
     
    @Override 
    public void onItemClick(AdapterView<?> adapterView, View view, int position, long id) {
        if (actionMode != null) {
            actionMode.finish();
            return; 
        } 
        if (itemClickListener != null) {
            itemClickListener.onItemClick(adapterView, view, position, id);
        } 
    } 
Contextual code suggestions in your IDE  Get Codota for Java