Most visited

Recently visited

Added in API level 11

AbsListView.MultiChoiceModeListener

public static interface AbsListView.MultiChoiceModeListener
implements ActionMode.Callback

android.widget.AbsListView.MultiChoiceModeListener


一个MultiChoiceModeListener接收事件CHOICE_MODE_MULTIPLE_MODAL 它用作选择模式的ActionMode.Callback ,并在用户选择和取消选择列表项目时收到onItemCheckedStateChanged(ActionMode, int, long, boolean)事件。

Summary

Public methods

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

在选择模式中选中或取消选中项目时调用。

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)

在选择模式中选中或取消选中项目时调用。

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.

Hooray!