@BindView(R2.id.edit_sign_up_email)
TextInputEditText mEmail = null;
String email = mEmail.getText().toString();
if (email.isEmpty() || !Patterns.EMAIL_ADDRESS.matcher(email).matches()) {
// 错误的邮箱格式
} else {
// 校验通过
}
网友评论