Question

Je veux désactiver certains éléments ListView qui est dans le AlertDialog.

Comment puis-je faire?

Était-ce utile?

La solution

fournir votre propre ListAdapter personnalisé au AlertDialog.Builder via setAdapter(). Vous pouvez ensuite passer outre areAllItemsEnabled() et isEnabled() pour activer / désactiver ce que vous voulez.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top