I’m fairly new to android programming, and I have the following situation:
I’d like to have two editText fields, where if the user types data into the first, it disables the other field, meaning it’s still visable but not editable by the user.
I’m sure there’s an easy way to do this, but I haven’t been able to find it.
Thank you for the help, and let me know if I’m missing any specific details,
Classy
Use
EditText.addTextChangedListenerto detect user input data.Use
EditText.setEnabled(false)to disable your second EditText.Hope this will help you going.