Why is ListView.getCheckedItemPositions() not returning correct values?

前端 未结 15 1948
北海茫月
北海茫月 2020-11-29 06:01

The app has a ListView with multiple-selection enabled, in the UI it works as expected. But when I read the values out using this code:

Log.         


        
15条回答
  •  暖寄归人
    2020-11-29 06:23

    Isn't there a rather fundamental difference between 'selected' and 'checked'?

    Suspect you want to setItemChecked() from an OnItemSelectedListener...

提交回复
热议问题