• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps EditText - getting the 10 key numeric virtual keypad

Armaced

Lurker
I have been having some trouble. I have created an EditText field that should only receive numbers, but the virtual keypad always comes up in QWERTY mode (shifted to numbers) with the numbers across the top. A 10-key pad would be much more convenient.

Googling around, I found various properties I could give the EditText that should call the virtual 10-Key, (android:numeric="decimal", or android:inputType="numberDecimal") and they work on the virtual android device that Eclipse launches, but when I move the app to my Motorola Droid, I still get the QWERTY.

Here is a sample of one of my EditText fields. Can anyone help me out?

<EditText
android:id="@+id/txtOunceI"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:numeric="decimal"
android:inputType="numberDecimal"
android:layout_column="0"
android:layout_span="1"/>
 
Armaced,

I'm trying to do the exact same thing, but I'm trying to target phones with a min sdk of 1.6. How would I go about getting my edittext to display the dialer/like soft keyboard??

FXFman1209
 
Back
Top Bottom