is Empty Text View - Android android.widget

Android examples for android.widget:TextView

Description

is Empty Text View

Demo Code

import android.widget.TextView;

public class Main {

  public static boolean isEmptyTextView(TextView tv) {
    if (tv == null) {
      return true;
    }//from w  ww.j  a  v  a 2s  .c o m
    if ("".equals(tv.getText().toString())) {
      return true;
    } else {
      return false;
    }
  }

}

Related Tutorials