Re: EditText Masking
- Posted by Derek Parnell <ddparnell at bigpond.com> Jul 10, 2006
- 519 views
Rad wrote: > > Hi, > > Is there any routine available which can be used to mask EditText control for > accepting amount / percentage / rate fields? > > e.g. ##,###,###,###.## or ###.##### None that I'm aware of. However, from a good UI point of view, it would be better to allow the user to enter anything they wanted to and validate it when they leave the field. You can, at that time, format the input how you wanted to and display it back at them. The getNumber() function understands the use of commas and % symbols such that "98.445%" is returned as 0.98445. -- Derek Parnell Melbourne, Australia Skype name: derek.j.parnell