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

Commit 373babb

Browse files
author
John Cordeiro
committed
Update documentation with new auto dismiss behavior
1 parent 2a61b47 commit 373babb

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Step 2: Add the dependency
2525
```
2626
Latest Version: [![Latest version](https://jitpack.io/v/Ilhasoft/data-binding-validator.svg?style=flat-square)](https://jitpack.io/#Ilhasoft/data-binding-validator)
2727

28-
 
28+
2929
## Features:
3030

3131
* Minimum/Maximum length validation for text fields;
@@ -172,7 +172,7 @@ If you want to come back to the default way, call `validator.enableFieldValidati
172172

173173
### Auto dismiss ###
174174

175-
By default, the library auto dismiss the error messages when you start typing again, but it's configurable as well. You can add on your layout validation the same validation rule and adding `AutoDismiss` at the end, which receives a `boolean`. For example:
175+
By default, the library prompts error messages and doens't dismiss the error automatically, however, you can add on your layout validation the same rule name by adding `AutoDismiss` at the end, which receives a `boolean`. In this case it could dismiss the error automatically. For example:
176176

177177
```
178178
<EditText
@@ -182,5 +182,5 @@ By default, the library auto dismiss the error messages when you start typing ag
182182
android:hint="Name"
183183
app:validateDate='@{"dd/MM/yyyy"}'
184184
app:validateDateMessage="@{@string/dateErrorMessage}"
185-
app:validateDateAutoDismiss="@{false}" />
185+
app:validateDateAutoDismiss="@{true}" />
186186
```

0 commit comments

Comments
 (0)