samedi 14 mars 2020

In Android, how can I enable a checkBox only if there is text in a textView?

In my layout I have a textView and a checkBox. I like to enable the checkBox only if the user enters text in the textView. If the user removes the text in the textView, the checkBox should get grayed out again.

Can you please give me some idea how I might be able to do this?

Thanks in advance




Aucun commentaire:

Enregistrer un commentaire