Re: EditText Masking

new topic     » goto parent     » topic index » view thread      » older message » newer message

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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu