How to disable a child in the list (make its color gray and invisible)

there is a list in my application, and clicking on each item results in an operation.

but in some situations, some operation cannot be performed.

how to disable a child in listview (make its color gray and invisible)?

+5
source share
1 answer

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

+10
source

All Articles