On Mar 14, 8:50 am, frizzo <rg...@vbrad.com> wrote:
> I'd like users to be able to enter a price (e.g. 4.49 or 10.99) and
> that's all, no negative numbers or any of that.  Is there a feature
> that allows me to do that?  I can't seem to find support for masks.

You can use the "android:numeric" xml attribute.
Or if you build the TextView in code then use the corresponding
DigitsKeyListener.

Not sure if this will eliminate the possibility to input negative
numbers, but you simply extend the DigitsKeyListener if that is so
important to you.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to