带有CursorAdapter的Listview getCheckedItemIds没有返回_ids

时间:2015-02-17 14:13:53

标签: android-cursoradapter

使用CursorAdapter的Listview SetchoiceMode是多个

getCheckedItemIds返回的位置而不是_ids 我的适配器也很稳定

你知道原因吗?

1 个答案:

答案 0 :(得分:0)

我的游标适配器已在方法

下面覆盖

@覆盖     public long getItemId(int position){

    return position;
}

我删除了这个,现在它工作正常