2018.6.46
register.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
if(passwordString.equals(passwordEnsureString)){
// 网络操作
Intent intent = new Intent(RegisterActivity.this, LoginActivity.class);
startActivity(intent);
}
else{
Toast.makeText(RegisterActivity.this,"确认密码与密码不符",Toast.LENGTH_SHORT).show();
}
}
});