* Normal list that does not indicate choices
*/
public static final int CHOICE_MODE_NONE = 0;
/**
* The list allows up to one choice
*/
public static final int CHOICE_MODE_SINGLE = 1;
/**
* The list allows multiple choices
*/
public static final int CHOICE_MODE_MULTIPLE = 2;
/**
* The list allows multiple choices in a modal selection mode
*/
public static final int CHOICE_MODE_MULTIPLE_MODAL = 3;
以上属性表明了选项的状态的,如单选、多选等等
/**
* The thread that created this view.
*/
private final Thread mOwnerThread;创建视图的线程
/**
* Controls if/how the user may choose/check items in the list
*/
int mChoiceMode = CHOICE_MODE_NONE;表明用户指定的模式
/**
* Controls CHOICE_MODE_MULTIPLE_MODAL. null when inactive.
*/
ActionMode mChoiceActionMode;ActionMode用来实现Listview的多选功能,通过设置它来激活多选功能
/**
* Wrapper for the multiple choice mode callback; AbsListView needs to perform
* a few extra actions around what application code does.
*/
MultiChoiceModeWrapper mMultiChoiceModeCallback;封装了多选模式的回调接口
/**
* Running count of how many items are currently checked
*/
int mCheckedItemCount;当前checked的数目