Jak zrobić pole tekstowe wymagane w Android Studio

if(TextUtils.isEmpty(eventEdit.getText()))
{
  eventEdit.setError(" Please Enter Event Name ");
}else {
  //proceed with operation
}
Lazy Lion