Toast没有显示
//验证登录用户输入合法性
public static boolean validateLogin(Context context,String phone,String password){
if(!RegexUtils.isMobileExact(phone)){
Toast.makeText(context,"无效手机号",Toast.LENGTH_SHORT);
return false;
}
if(TextUtils.isEmpty(password)){
Toast.makeText(context,"请输入密码",Toast.LENGTH_SHORT);
return false;
}
return true;
}
