is Empty TextView - Android User Interface

Android examples for User Interface:TextView

Description

is Empty TextView

Demo Code


//package com.java2s;

import android.widget.TextView;

public class Main {

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

Related Tutorials