Пример #1
0
  private void init_ctrl() {
    navBar = (MainNavigateBar) findViewById(R.id.NAV);
    navBar.setOnMainNavLeftClickListener(NavLeftClickListener);
    navBar.setOnMainNavRightClickListener(NavRightClickListener);

    btnFindPwd = (Button) findViewById(R.id.btnFindPwd);
    btnFindPwd.setOnClickListener(this);
    txtFindPwd = (EditText) findViewById(R.id.txtFindPwd);
  }
Пример #2
0
 private void init_ctrl() {
   navBar = (MainNavigateBar) findViewById(R.id.NAV);
   navBar.setOnMainNavLeftClickListener(NavLeftClickListener);
   navBar.setOnMainNavRightClickListener(NavRightClickListener);
   btnLogin = (Button) findViewById(R.id.btnLogin);
   btnLogin.setOnClickListener(this);
   btnRegister = (Button) findViewById(R.id.btnRegister);
   btnRegister.setOnClickListener(this);
   btnSina = (Button) findViewById(R.id.btnLoginSina);
   btnSina.setOnClickListener(this);
   btnDouban = (Button) findViewById(R.id.btnLoginDouban);
   btnDouban.setOnClickListener(this);
   btnKaixin = (Button) findViewById(R.id.btnLoginKaixin);
   btnKaixin.setOnClickListener(this);
   btnRenren = (Button) findViewById(R.id.btnLoginRenren);
   btnRenren.setOnClickListener(this);
   txtName = (EditText) findViewById(R.id.txtName);
   txtPwd = (EditText) findViewById(R.id.txtPwd);
   txtFindPwd = (TextView) findViewById(R.id.txtFindPwd);
   txtFindPwd.setOnClickListener(this);
 }