Closed AlexCatch closed 7 years ago
It is split into two parts integer
and fraction
. If you set @Digits(integer = 2, fraction = 2)
. These are all valid - 1
, 1.1
, 1.12
, 23
, 23.2
, 23.25
What is the meaning of integer
in this context?
Does it mean the length of integers?
@malhobayyeb yes it does.
I can't seem to get the digits annotation to work, I can't figure out for the life of me what the integer parameter its wants is.
Entering numbers into the EditText causes validation to fail with 'Must be a digit'
This is my code.