5

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.

Amit Vaghela
  • 22,772
  • 22
  • 86
  • 142
misha
  • 134
  • 1
  • 10

2 Answers2

0

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.

Amit Vaghela
  • 22,772
  • 22
  • 86
  • 142
  • now I've got new exception, on class which extends preferenceActivity Caused by: java.lang.IllegalArgumentException: AppCompat does not support the current theme features: { windowActionBar: false, windowActionBarOverlay: false, android:windowIsFloating: false, windowActionModeOverlay: false, windowNoTitle: false } – misha Sep 07 '16 at 12:32
  • please check http://stackoverflow.com/questions/29790070/upgraded-to-appcompat-v22-1-0-and-now-getting-illegalargumentexception-appcompa – Amit Vaghela Sep 07 '16 at 12:34
  • use **Theme.AppCompat.NoActionBar** as your parent theme – Amit Vaghela Sep 07 '16 at 12:36
  • :/ still crashing and have same exception – misha Sep 07 '16 at 13:24
0

You have to call setError method like this:

setError("Error", null)