The simplest way to add reactive validation to your app.
Problem
in your application, there are fields that must be validated. When the number of validation rules becomes greater than 1, to control the display of errors in the fields becomes difficult.
Solve Separate your validation logic by S in SOLID, into own classes. After that, attach validation rules to your fields and combine validation results for change some ui states (ex. change visibility of button)
from The Android Arsenal
No comments:
Post a Comment