public static interface AbsListView.MultiChoiceModeListener
implements ActionMode.Callback

android.widget.AbsListView.MultiChoiceModeListener



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.

Summary

Public methods

abstract void onItemCheckedStateChanged(ActionMode mode, int position, long id, boolean checked)

Called when an item is checked or unchecked during selection mode.

Inherited methods

From interface android.view.ActionMode.Callback

abstract boolean onActionItemClicked(ActionMode mode, MenuItem item)

Called to report a user click on an action button.

abstract boolean onCreateActionMode(ActionMode mode, Menu menu)

Called when action mode is first created.

abstract void onDestroyActionMode(ActionMode mode)

Called when an action mode is about to be exited and destroyed.

abstract boolean onPrepareActionMode(ActionMode mode, Menu menu)

Called to refresh an action mode's action menu whenever it is invalidated.

Public methods

onItemCheckedStateChanged

public abstract void onItemCheckedStateChanged (ActionMode mode, 
                int position, 
                long id, 
                boolean checked)

Called when an item is checked or unchecked during selection mode.

Parameters
mode ActionMode: The ActionMode providing the selection mode
position int: Adapter position of the item that was checked or unchecked
id long: Adapter ID of the item that was checked or unchecked
checked boolean: true if the item is now checked, false if the item is now unchecked.

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2026-02-26 UTC.