Validations in Android

936 views.

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.

Step1: Add Data Binidng in Depaency

Step2: Create xml file

activity_main.xml

Step3: Created Java file

MainActiity.java

output:

You may also like...

Leave a Reply