Да .. ,, вы можете использовать inputType как число
<EditText
android:id="@+id/editText1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:inputType="number" >
</EditText>
Выход
![enter image description here](https://i.stack.imgur.com/XOnIm.png)
Решение 2
android:inputType="phone"
android:digits="0123456789"