• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Mask on when entering EditText

Hello I wonder how I put a mask on when entering EditText to appear eg 123 1.23, and 12.34 appear after 1234, ie more than two digits to appear a comma. For this is the format of the currency of my country Brazil, sorry for the text used a translator to ask.
 
After you get the value can you take it and divide by 100 or multiply by .01 prior to having it display.

123/100=1.23
1234x.01=12.34


Grasping at straws here

Can you set a float value of 2 this should move the "." in the price 2 digits left which would also achieve your request
 
Back
Top Bottom