EditText是否为空正确判断方式
1.判断长度
String str = EditText.getText().toString().trim();
if(str.length()==0){
~~~为空
2.Empty
if(str.isEmpth){
~~~为空
1.判断长度
String str = EditText.getText().toString().trim();
if(str.length()==0){
~~~为空
2.Empty
if(str.isEmpth){
~~~为空