Code example for CompoundButton

Methods: getTag

0
 
            T item = (T) buttonView.getTag();
 
            if (isChecked && !checked.contains(item)) {
                checked.add(item);
            } else { 
                checked.remove(item);
            } 
 
            onItemChecked(buttonView, isChecked);
        } 
    } 
 
    private final class AbstractListAdapterFilter extends Filter {
 
        private final AbstractListAdapter<T> adapter;
        private final ListAdapterFilter<T> filter;
 
        public AbstractListAdapterFilter(AbstractListAdapter<T> adapter, ListAdapterFilter<T> filter) {
            this.adapter = adapter;
            this.filter = filter;