Skip to content

Most visited

Recently visited

navigation
Added in API level 11

AbsListView.MultiChoiceModeListener

public static interface AbsListView.MultiChoiceModeListener
implements ActionMode.Callback

android.widget.AbsListView.MultiChoiceModeListener


A MultiChoiceModeListener receives events for 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

Public methods

onItemCheckedStateChanged

Added in API level 11
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.
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.