public static interface AbsListView.MultiChoiceModeListener extends ActionMode.Callback
AbsListView.CHOICE_MODE_MULTIPLE_MODAL
.
It acts as the ActionMode.Callback
for the selection mode and also receives
onItemCheckedStateChanged(ActionMode, int, long, boolean)
events when the user
selects and deselects list items.Modifier and Type | Method and Description |
---|---|
void |
onItemCheckedStateChanged(ActionMode mode,
int position,
long id,
boolean checked)
Called when an item is checked or unchecked during selection mode.
|
onActionItemClicked, onCreateActionMode, onDestroyActionMode, onPrepareActionMode
void onItemCheckedStateChanged(ActionMode mode, int position, long id, boolean checked)
mode
- The ActionMode
providing the selection modeposition
- Adapter position of the item that was checked or uncheckedid
- Adapter ID of the item that was checked or uncheckedchecked
- true
if the item is now checked, false
if the item is now unchecked.