vekexasia / android-edittext-validator

Android form edit text is an extension of EditText that brings data validation facilities to the edittext.
MIT License
1.45k stars 378 forks source link

min number of characters? #33

Closed sirvon closed 9 years ago

sirvon commented 9 years ago

How about only allowing success if there are atleast 5 characters in the edittext?

How would that be facilitied?

thanks!

DDRBoxman commented 9 years ago

Extend the Validator class https://github.com/vekexasia/android-edittext-validator/blob/master/library/src/com/andreabaccega/formedittextvalidator/Validator.java

crgarridos commented 9 years ago

But that would be better implemented into xml

thanks

vekexasia commented 9 years ago

you can do it in xml using the regexps. :)