In Android, how can I make the keypad that is displayed for user input, display a number keypad “123456789.+-“, instead of the default QWERTY keyboard? I need it to display this for ease of data entry.
<EditText
android:id="@+id/etCYLl"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="5dp"
android:layout_weight="1"
android:background="@drawable/myedittext"
android:ems="10"
android:inputType="numberDecimal|numberSigned"
android:digits="0123456789.+-"
android:nextFocusForward="@+id/etAXEl"
android:paddingLeft="5dp"
android:paddingRight="5dp"
android:singleLine="true" />
You need to write a keyboard to use for the app. You can change the custom keys used in the keyboard, check here: http://www.droid-life.com/2010/04/22/create-your-own-custom-htc_ime-keyboard/