Reputation: 75
How can i set a text field in ANDROID that only allow positive integer numbers like 0, 1, 2, 3, 4, and so on
Upvotes: 0
Views: 483
Reputation: 8030
Put this line in the xml:
android:inputType="numberSigned"
Upvotes: 2