Android ListView with multiple select and custom adapter

前端 未结 3 583
悲哀的现实
悲哀的现实 2021-01-11 13:23

I have a ListView with a custom adapter. The ListView allows multiple select, but somehow it\'s not recognising when an item is selected.

I

3条回答
  •  旧时难觅i
    2021-01-11 13:58

    I had a problem like this once. It has something to do with the fact that you have a view on the adapter that is selectable causing the parent to ignore it. Removing it allows you to select the row of the listview again. What you've created is basically a button on a button, android does not like that :-(

提交回复
热议问题