AutoCompleteTextView 设置错误

mis*_*sha 5 xml android autocompletetextview android-layout android-studio

图片说明

密码字段是AutoCompleteTextView,我正在尝试setError在它为空时执行此操作,但我不希望显示此红色感叹号。我该怎么做?

在此之上的 PS 字段也是AutoCompleteTextView, (mailview) 但是当我这样做setError时它是空的,红色感叹号不显示。

Ami*_*ela 0

为此,您需要使用com.android.support....23.0.0.

也不要使用setError这样就不会出现额外的感叹号,而是使用其他方式来显示错误。

据我所知,这是更新为密码时的一个错误,感叹号被覆盖。com.android.support....24.0.0TextInputLayoutsetError

您应该只使用其中之一。