Search code examples
androidxmlandroid-layoutandroid-studioautocompletetextview

AutoCompleteTextView setError


Image Description

Password field is AutoCompleteTextView and I'm trying to do setError when it's empty, but I don't want this red exclamation mark to show. How should I do this?

P.S. field on top of this, is also AutoCompleteTextView, (mailview) but when I do setError when it's empty, red exclamation mark doesn't show.


Solution

  • To do that, you need to use com.android.support....23.0.0.

    as well as dont use setError so that extra exclamation will not appear instead use some other way to show error.

    according to me, this is a bug on updating to com.android.support....24.0.0 in TextInputLayout as password and setError exclamation will be overrite.

    you should use only one of them.