is EditText Blank - Android User Interface

Android examples for User Interface:EditText

Description

is EditText Blank

Demo Code


//package com.java2s;

import android.text.TextUtils;

import android.widget.EditText;

public class Main {
    public static boolean isBlank(EditText editText) {
        return TextUtils.isEmpty(editText.getText());
    }//  w w w  .java2 s .  co  m
}

Related Tutorials