How to disable a child item in a listview(make its color gray and unclickable)

后端 未结 1 640
深忆病人
深忆病人 2021-01-12 16:32

in my application, there is a listview, and clicking each item of it leads to an operation.

but in some situation, some operation can not be done.

how to dis

相关标签:
1条回答
  • 2021-01-12 17:09

    You should override isEnabled in your adapter. Just keep track of the items you want to disable and return the correct value for them.

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