views:

177

answers:

3

On the soft keyboard in Android you can set the soft keyboard to show the numbers instead of a-z keyboard using android:inputType="numberDecimal". However, what do I do if I only want to show the top number row 1 2 3 4 5 6 7 8 9 0 and not the following rows starting with @ # $ % ...?

Thanx for listening!

+1  A: 

Last I looked into it, Android did not have any good options for that. I ended up having to write my own version of a soft keyboard-like user interface.

Spike Williams
So in order to go for the lowest version used in the market as of today (1.5) - I need to write my own SoftKeyboard.java class then. That'll be a challange :-)
BennySkogberg
+2  A: 

The phone number pad is the closest thing I've found (set inputType="phone" on your EditText).

Justin
Thanx! I'll give it a try. BR
BennySkogberg
+3  A: 
android:inputType="phone"
android:digits="1234567890"

is an option

softarn