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!