Ejemplo n.º 1
0
 @Override
 public void onClick(View v) {
   switch (v.getId()) {
       // 注册
     case R.id.tv_register_do:
       doRegister(
           etUserName.getText().toString(),
           etPassWord.getText().toString(),
           etConfir.getText().toString());
       break;
     case R.id.ll_tv_base_left:
       PMRegisterActivity.this.finish();
       break;
     default:
       break;
   }
 }
Ejemplo n.º 2
0
 private void initview() {
   etUserName = (MyEditText) findViewById(R.id.et_register_username);
   etPassWord = (MyEditText) findViewById(R.id.et_register_password);
   etConfir = (MyEditText) findViewById(R.id.et_confir_password);
   tvRegister = (TextView) findViewById(R.id.tv_register_do);
   etPassWord.setInputPassword();
   etConfir.setInputPassword();
   etUserName.setHintText(R.string.user_name);
   etPassWord.setHintText(R.string.pass_word);
   etConfir.setHintText(R.string.confir_password);
   tvRegister.setOnClickListener(this);
   tvTitle = (TextView) findViewById(R.id.tv_mid_title);
   tvTitle.setText("注册");
   llBack = (LinearLayout) findViewById(R.id.ll_tv_base_left);
   llBack.setVisibility(View.VISIBLE);
   llBack.setOnClickListener(this);
 }