Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.widget.TextView;

public class Main {
    /**
     * check if an TextView is empty, and returns a boolean
     * @param textViews
     * @return
     */
    public static boolean isEmptyMultiTextView(TextView... textViews) {
        for (TextView textView : textViews) {
            if (textView.getText().toString().trim().isEmpty()) {
                return true;
            }
        }
        return false;
    }
}