Skip to content
This repository was archived by the owner on Nov 5, 2025. It is now read-only.

Commit 4f9ba49

Browse files
author
John Cordeiro
committed
Update sample layout with better use of auto dismiss feature
1 parent e24a230 commit 4f9ba49

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

sample/src/main/res/layout/activity_main.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
android:hint="Name"
2626
app:validateMinLength="@{4}"
2727
app:validateMinLengthMessage="@{@string/custom_error_min_length}"
28-
app:validateMinLengthAutoDismiss="@{false}"
28+
app:validateMinLengthAutoDismiss="@{true}"
2929
app:validateMaxLength="@{10}"
3030
app:validateMaxLengthMessage="@{@string/custom_error_max_length}"/>
3131

@@ -41,8 +41,7 @@
4141
android:layout_height="wrap_content"
4242
android:hint="Username"
4343
app:validateType='@{"username"}'
44-
app:validateTypeMessage="@{@string/custom_error_username}"
45-
app:validateTypeAutoDismiss="@{false}"/>
44+
app:validateTypeMessage="@{@string/custom_error_username}" />
4645

4746
</android.support.design.widget.TextInputLayout>
4847

@@ -54,7 +53,8 @@
5453
android:layout_width="match_parent"
5554
android:layout_height="wrap_content"
5655
android:hint="Email"
57-
app:validateType='@{"email"}' />
56+
app:validateType='@{"email"}'
57+
app:validateTypeAutoDismiss="@{true}"/>
5858

5959
</android.support.design.widget.TextInputLayout>
6060

0 commit comments

Comments
 (0)