I use TextInputLayout
for EditText
, and if I call TextInputLayout.setError()
method I get error view - it's ok.
<android.support.design.widget.TextInputLayout
android:id="@+id/text_i_l"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<EditText
android:id="@+id/edit_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="text"
android:singleLine="true" />
</android.support.design.widget.TextInputLayout>
But when I start input data to EditText this error doesn't hide. How can I close this error?