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 disable a child item in a listview (make its color gray and unclickable)?
You should override isEnabled in your adapter. Just keep track of the items you want to disable and return the correct value for them.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With