Android EditText numeric keypad and text resolution

Possible duplicate:
EditText with default numeric keypad but with alphabetic characters

I wonder if it is possible by default to use the numeric keypad to focus for the edittext field, but also allow users to enter characters? None of the input types seem to support this. Thanks!

+7
source share
1 answer

I just tried to add a text box in Android, and it worked fine in the emulator. By default, it first calls up the numeric keypad, but you can easily switch to characters. So try using a text box with numbers.

<EditText android:id="@+id/editText1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:inputType="number" /> 
-one
source

All Articles