EditText - getting the 10 key numeric virtual keypad

Discussion in 'Application Development' started by Armaced, May 5, 2010.

  1. Armaced

    Armaced Member
    5

    May 5, 2010
    5
    0
    5
    Remedy consultant
    California
    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?

     

    Advertisement
  2. vudin

    vudin New Member
    5

    May 17, 2010
    1
    0
    5
    maybe

    android:inputType="phone"

    can help you? it produces a dialpad with numbers from 0 to 9.
     
  3. Armaced

    Armaced Member
    5

    May 5, 2010
    5
    0
    5
    Remedy consultant
    California
    Thank you. Actually, the upgrade to Froyo fixed the problem without any code change. Strange...
     
  4. FXFman1209

    FXFman1209 New Member
    5

    Sep 9, 2010
    1
    0
    5
    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
     

Share This Page

Loading...