Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

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
}
 
PREVIOUS NEXT
Tagged: #text #field #required #android #studio
ADD COMMENT
Topic
Name
5+5 =