Introduction
In this article, you will learn how to validate edit text in Android.
Validation
Validation is a process to ensure that the value entered by the user is within the accepted boundaries of the application. For example, if a user enters a name then the programmer validates the edit text in such a way that it consists of only letters but no numeric values.
Step 1
Create a new project.
When we entered no value for the person's name:
Step 5
When we entered no value for the word:
Step 6
When we entered a numeric value:
Step 7
When we entered a valid value: