android required text in text input code example
Example: how to make a text field required in android studio
if(TextUtils.isEmpty(eventEdit.getText()))
{
eventEdit.setError(" Please Enter Event Name ");
}else {
//proceed with operation
}
if(TextUtils.isEmpty(eventEdit.getText()))
{
eventEdit.setError(" Please Enter Event Name ");
}else {
//proceed with operation
}