Android – How to show the number keyboard on an EditText in android

androidandroid-edittextkeyboard

I just basically want to switch to the number pad mode as soon a certain EditText has the focus.

Best Solution

You can configure an inputType for your EditText:

<EditText android:inputType="number" ... />