onItemCheckedStateChanged()中的id参数对于ExpandableListView中的多行是相同的

时间:2013-06-26 17:22:10

标签: android expandablelistview simplecursoradapter android-cursor

ExpandableListView SimpleCursorTreeAdapter并使用ActionMode。 在回调方法onItemCheckedStateChanged [long id]中,对多行重复参数。当我呼叫setItemChecked()某行时,我的项目被激活了。 如何计算[long id]?它是基于[_id]中的cursor吗?

1 个答案:

答案 0 :(得分:0)

long id独立于_id中的cursor .. long id只是ExpandableListView的行ID ..请参阅details here