Android ListView CHOICE_MODE_MULTIPLE, how to set checked index?

前端 未结 1 1882
醉话见心
醉话见心 2020-12-30 01:46

I\'m using the cool feature of the ListView to show a checkbox next to the item in the ListView. I bind my list to an array of strings. The onClick and onSelectedItem liste

相关标签:
1条回答
  • 2020-12-30 02:28

    Use the setItemChecked method of ListView

    Sets the checked state of the specified position. The result is only valid if the choice mode has been set to CHOICE_MODE_SINGLE or CHOICE_MODE_MULTIPLE.

    0 讨论(0)
提交回复
热议问题