Я была такая же проблема Aswell. То, что сработало для меня, было называть setError()
на элементе TextInputLayout
вместо EditText
.
Java:
TextInputLayout mEmailInputLayout;
mEmailInputLayout = (TextInputLayout) findViewById(R.id.emailInputLayout);
mEmailInputLayout.setError("error Msg");
XML:
<!--Email-->
<android.support.design.widget.TextInputLayout
android:id="@+id/emailInputLayout"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<EditText
android:id="@+id/email"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="textEmailAddress"/>
</android.support.design.widget.TextInputLayout>
сделал и найти решение этого? –
Нет, я просто меняю фокус с макета во время прокрутки. – abhishek