I would like to format an EditText as currency. User should enter numbers only and be restricted to something like ###.## and include the currency symbol. Entering 12.34 would show as $12.34. I user tried to enter more than 2 digits after the decimal point they would not show. Also no more than 3 (Specified in code) before the decimal they would not show.
Asked
Active
Viewed 21 times
-1
-
if you want more flexible outputs then try this -https://github.com/AbhinayMe/currency-edittext or if you dont want use implementation then try this thread -https://stackoverflow.com/questions/5107901/better-way-to-format-currency-input-edittext – Sandesh KhutalSaheb May 26 '22 at 15:24