android 判断文本框是否为空的方法。

1.判断文本框是否为空的方法。

   public static boolean isEmpty(String str) {

        if (str == null || str.trim().length() == 0) {

            return true;

        } else {

            return false;

        }

}

原文地址:https://www.cnblogs.com/beyond1008/p/2501173.html