EditText - getting the 10 key numeric virtual keypad


Last Updated:

  1. Armaced

    Armaced Member This Topic's Starter

    Joined:
    May 5, 2010
    Messages:
    5
    Likes Received:
    0
    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

    Joined:
    May 17, 2010
    Messages:
    1
    Likes Received:
    0
    maybe

    android:inputType="phone"

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

    Armaced Member This Topic's Starter

    Joined:
    May 5, 2010
    Messages:
    5
    Likes Received:
    0
    Thank you. Actually, the upgrade to Froyo fixed the problem without any code change. Strange...
     
  4. FXFman1209

    FXFman1209 New Member

    Joined:
    Sep 9, 2010
    Messages:
    1
    Likes Received:
    0
    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...