AutoCompleteTextView setError

Image description

Password field AutoCompleteTextView, and I try to do setErrorit when it is empty, but I do not want this red exclamation mark to appear. How should I do it?

PS the box on top of this is also AutoCompleteTextView(mailview), but when I do setError, when it is empty, the red exclamation mark is not displayed.

+4
source share
2 answers

For this you need to use . com.android.support....23.0.0

and also do not use setErrorso that an additional exclamation does not appear instead of another to show an error.

, com.android.support....24.0.0 TextInputLayout , setError .

.

0

setError :

setError("Error", null)
0

Source: https://habr.com/ru/post/1653900/


All Articles