I have EditText with numberDecimal. I want to set limit max 2 number after dot, something like 20.99
I can not use a maxLenght.
EditText take from user string, so how can i set this limit ?
I can not use InputFiler
Asked
Active
Viewed 60 times
0
-
One of the ways is to use regex + TextWatcher – Shaishav Jul 19 '17 at 10:52
-
Look at this - https://stackoverflow.com/q/5357455/614807 – Chirag Jul 19 '17 at 10:56
-
but i can not use a inputFilter – Jul 19 '17 at 10:58
-
Why you can not use inputFilter? – Himeshgiri gosvami Jul 19 '17 at 11:29