Ilhasoft / data-binding-validator

Android fields validation library based on data binding adapters.
Apache License 2.0
344 stars 53 forks source link

Binding problem #1

Closed IndiceDev closed 7 years ago

IndiceDev commented 7 years ago

Hi,

I'm new to Android Studio and I'm having some trouble with the data binding. I did all the steps on the ReadMe file and still can't make it work.

Corretc me if I'm wrong, but I need to add this to my layout right?

`

`

So then I can use the app:validateMinLength="@{4}".

Thank you!

johncordeiro commented 7 years ago

Hey @IndiceDev, you need to add compile 'com.github.Ilhasoft:data-binding-validator:0.6.1' into your build.gradle file, in this case, you are adding to your XML layout.

In order to use inside your XML layout, see this example: https://github.com/Ilhasoft/data-binding-validator/blob/master/sample/src/main/res/layout/activity_main.xml

I'm closing this issue because it's more a doubt about data binding usage and dependency configuration and not a library issue.