Skip to content Skip to sidebar Skip to footer

Can I In Android Show Only Numeric Keyboard?

Can I in android show only numeric keyboard ? I know that is possible on iPhone but I don't know how to do this on Android.

Solution 1:

In your xml layout for your EditText use :

    android:inputType="number"

Solution 2:

Use

android:digits="0123456789" android:inputType="phone"

in your XML

Post a Comment for "Can I In Android Show Only Numeric Keyboard?"