if (!validateEmail(email) || (TextUtils.isEmpty(email))) {
emailwrapper.setError("Invalid email");
} else {
emailwrapper.setError(null);
}
if (password.length() < 6 || (TextUtils.isEmpty(password))) {
passwordwrapper.setError("Password must have at least 6 characters");
return;
} else {
passwordwrapper.setError(null);
}
startActivity(new Intent(SignupActivity.this, MoreInfo.class));
如果两个文本输入布局留空,我将如何使两个错误消息都显示,并确保用户无法继续使用仅正确填写密码的 MoreInfo 类?