如何判断GUI中edit text中的内容是否为空

2025-04-14 11:34:37
推荐回答(1个)
回答1:

android提供了一个专门判断空字符串的方法。

TextUtils.isEmpty(edit.getText())

直接调用就可以了。