if ("".equals(text.getText().toString().trim())) 转载于:https://www.cnblogs.com/Tristan2012/archive/2012/10/23/2734886.html