How do you set EditText to only accept numeric values in Android?

Add android:inputType="number" as an XML attribute.

Leave a Comment