How to validate edittext field so that it should not accept alphabets when entered and it should accept only numbers? I have written the code for empty edittext…i.e if nothing is entered in the editetext an alert will be raised. But how to make my edittext to accept only numbers and not alphabets?
Help me regarding this….Will be thankful to you…
How to validate edittext field so that it should not accept alphabets when entered
Share
set the InputType as number to your EditField to accept only number
For Example