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)?
You must override isEnabled in your adapter. Just keep track of the items you want to disable and return them to the correct value.