alexxxdev / RotadilavK

Android validation library that helps a developer do the tedious work in a few simple steps

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RotadilavK

Android validation library that helps a developer do the tedious work in a few simple steps

Use:

com.github.alexxxdev.RotadilavK:rotadilavk-support-v4:master

or

com.github.alexxxdev.RotadilavK:rotadilavk-androidx:master
 val validator:Validator by lazy {
        Validator(
                Field(
                        inputLayout = emailInputLayout,
                        rule = CustomRule(getString(R.string.error_field_required)) {
                            true
                        }
                ),
                Field(passwordInputLayout, RegexRule("^[a-zA-Z]{6,12}", getString(R.string.error_field_required)))
        ).enableTrim(true)
    }

...

    if(validator.validate()){
    }

About

Android validation library that helps a developer do the tedious work in a few simple steps

License:Apache License 2.0


Languages

Language:Kotlin 100.0%