void function ( int arg0 ) { if ( mChoiceMode != arg0 ) { mChoiceMode = arg0 ; clearSelections ( ) ; } }
defines the choice behavior for the recyclerview . by default , recyclerviewchoicemode does not have any choice behavior abslistview.choice _ mode_none . by setting the choicemode to abslistview.choice _ mode_single , the recyclerview allows up to one item to be in a chosen state . concode_field_sep RecyclerView.AdapterDataObserver mAdapterDataObserver concode_elem_sep LongSparseArray<Integer> mCheckedIdStates concode_elem_sep SparseBooleanArray mCheckStates concode_elem_sep RecyclerView.Adapter mAdapter concode_elem_sep String SELECTED_ITEMS_KEY concode_elem_sep int mChoiceMode concode_elem_sep int CHECK_POSITION_SEARCH_DISTANCE concode_elem_sep String LOG_TAG concode_field_sep void onClick concode_elem_sep void confirmCheckedPositionsById concode_elem_sep int getSelectedItemPosition concode_elem_sep void onChanged concode_elem_sep void onRestoreInstanceState concode_elem_sep boolean isItemChecked concode_elem_sep void onSaveInstanceState concode_elem_sep void clearSelections concode_elem_sep void onBindViewHolder