Mike, I only just saw this - sorry late reply. You've probably solved by now. Give XML attribute for your edit text
android:inputType="number" Best Regards, Geoff On Aug 6, 11:26 pm, Mike Olson <[email protected]> wrote: > I have an EditText that I don't want to force to be a number, but > chances are it almost always will start with a number (The field is > "Quantity", and I'd like to to be freetext, so I can write "1 oz", "2 > boxes", etc). > > Is there a way to have the on-screen keyboard default to the numeric > keyboard, but still allow me to enter letters if I press the "ABC" > button? If I say add android:number="integer" it won't allow non- > numeric inputs. > > Thanks, > Mike --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---

