Package icyllis.modernui.widget
Interface AbsListView.MultiChoiceModeListener
- All Superinterfaces:
ActionMode.Callback
- Enclosing class:
AbsListView
A MultiChoiceModeListener receives events for
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.-
Method Summary
Modifier and TypeMethodDescriptionvoidonItemCheckedStateChanged(ActionMode mode, int position, long id, boolean checked) Called when an item is checked or unchecked during selection mode.Methods inherited from interface icyllis.modernui.view.ActionMode.Callback
onActionItemClicked, onCreateActionMode, onDestroyActionMode, onGetContentRect, onPrepareActionMode
-
Method Details
-
onItemCheckedStateChanged
Called when an item is checked or unchecked during selection mode.- Parameters:
mode- TheActionModeproviding the selection modeposition- Adapter position of the item that was checked or uncheckedid- Adapter ID of the item that was checked or uncheckedchecked-trueif the item is now checked,falseif the item is now unchecked.
-