Dhaval2404/android-form-validation

Unable to use in java project ?

drmkraja opened this issue · 2 comments

It shows as NonEmptyRule cannot be resolved...

.addField(firstNameEt, NonEmptyRule(R.string.error_empty_first_name))

@drmkraja It seems to be working fine for me.

Here is the syntax for Java.

FormValidator.Companion.getInstance()
    .addField(firstNameEt, new NonEmptyRule(R.string.error_empty_first_name))
    .validate();

Since I'm new to Kotlin, I was Unable to solve it. Now it is working thank you