Question

I want to disable some items in ListView which is in the AlertDialog.

How may I do it?

Was it helpful?

Solution

Supply your own custom ListAdapter to the AlertDialog.Builder via setAdapter(). You can then override areAllItemsEnabled() and isEnabled() to enable/disable whatever you want.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top