[android-beginners] Re: How to set a mask on an EditText widget?

2009-03-14 Thread Gesh
On Mar 14, 8:50 am, frizzo 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

[android-beginners] Re: How to set a mask on an EditText widget?

2009-03-14 Thread frizzo
That sounds so VB2 On Mar 14, 5:46 am, Mark Murphy wrote: > frizzo 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. > > Yo

[android-beginners] Re: How to set a mask on an EditText widget?

2009-03-14 Thread Mark Murphy
frizzo 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 setKeyListener() on the EditText to supply it something that