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…
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Have you taken a look at the EditText’s
inputTypeattribute? 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: