0

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

Cosmos
  • 1

3 Answers3

0

Call both setError(null) and setErrorEnabled(false).

Ben P.
  • 52,661
  • 6
  • 95
  • 123
0

Use TextInputEditText 's onFocusChangeListener and call textEditInputText.setError(null) in the listener.

zhh
  • 2,346
  • 1
  • 11
  • 22
0

OnTextChange when your text is valid than call only setErrorEnabled(false) thats it.