How can I validate a text view in android to handle positive integer numbers?
I don't want it to accept any character or signs etc...
Have you taken a look at the EditText's inputType
attribute? You can set a whole bunch of different input types that the EditText should limit the user input to.
From the sounds of it, you're probably looking for something like:
<EditText
....
android:inputType="number"
... />
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With