안드로이드

edittext 에 null또는 공백체크

Siang's 2019. 3. 19. 16:03
반응형
TextUtils.isEmpty(edittext)



public static boolean isEmpty(@Nullable CharSequence str) {



    isEmpty
    if (str == null || str.length() == 0)
            return true;
        else
            return false;
    }
반응형