Code example for BaseAdapter

Methods: notifyDataSetChanged

0
        } 
        if (actionMode == null) {
            startActionMode(); 
        } 
        selection.add((long)handle);
        owner.notifyDataSetChanged();
        onItemSelectedStateChanged(); 
    } 
 
    void unselect(long handle) {
        boolean wasSelected = isSelected(handle);
        if (!wasSelected) {
            return; 
        } 
        selection.remove(handle);
        if (getSelectionCount() == 0) { 
            finishActionMode(); 
            return; 
        } 
        owner.notifyDataSetChanged();
        onItemSelectedStateChanged();