Releases: abnerescocio/edittext-mask
Releases · abnerescocio/edittext-mask
Some powerful fixes
The most importants
- new way to validate a field with fieldValidate() method. This method is more performatic and point exactly invalid field
- default value to inputType. All mask has own input type to prevent incorrectly implementation of fields
- all masks has trully a method to valid parameters, this is isValid() method
- powerful implementation of credit card
- use of new attribute regex auxiliary instead range to apply a secondary way to valid a field
New credit cards
List of accepted credit card patterns
- Mastercard
- Hipercard
- Discover
- Visa
New credit cards
List of accepted credit card patterns
- Mastercard
- Hipercard
- Discover
- Visa
Merge from beta
Contains various bug fixes and layout changes
Icons to credit card
1.5.1-alpha Icons to types of credit card implemented
Pattern to credit card implemented
Merge remote-tracking branch 'origin/alpha' into alpha # Conflicts: # lib/src/main/java/com/abnerescocio/lib/MASK.kt # lib/src/main/java/com/abnerescocio/lib/TextInputEditTextMask.kt # lib/src/main/res/values/attrs.xml # lib/src/main/res/values/strings.xml
Brazilian postal code added
1.4.0 CNPJ watcher fixed
Range implementation
The news
Now is possible apply a range to field as an interval between 0 to 99 or 10 to 15 for example! To this, use the follow propertie:
range
: Put a regex to define a rangerange_errorMsg
: Define a message to wrong range
Fix bug
1.2.3 Fix bug to set isValid when fields are required and has empty body
Adding property isValid()
The news
Now is possible verifier if field is valid by calling isValid()
property