I have tried to use
textinputlayout.setError(null)
using TextWatcher, but the error still shows. It only disappears upon returning to the activity after going to another one
I have tried to use
textinputlayout.setError(null)
using TextWatcher, but the error still shows. It only disappears upon returning to the activity after going to another one
Use TextInputEditText
's onFocusChangeListener
and call textEditInputText.setError(null)
in the listener.
OnTextChange when your text is valid than call only setErrorEnabled(false)
thats it.