use of butterknife.OnClick in project BBS-Android by bdpqchen.
the class LoginActivity method onViewClicked.
@OnClick({ R.id.tx_forgot_password, R.id.tv_goto_register, R.id.et_account, R.id.et_password, R.id.tv_goto_replace_user, R.id.tv_no_account_user, R.id.cp_btn_login })
public void onViewClicked(View view) {
switch(view.getId()) {
case R.id.tx_forgot_password:
// TODO: 17-5-31 忘记密码
Toast.makeText(this, "请到PC端找回密码,移动端暂不支持", Toast.LENGTH_LONG).show();
break;
case R.id.tv_goto_register:
startActivity(new Intent(this, RegisterActivity.class));
break;
case R.id.et_account:
break;
case R.id.et_password:
break;
case R.id.tv_goto_replace_user:
startActivity(new Intent(this, ReplaceUserActivity.class));
break;
case R.id.tv_no_account_user:
loginWithNoUsername();
break;
case R.id.cp_btn_login:
String username = mEtAccount.getText() + "";
String password = mEtPassword.getText() + "";
if (username.length() == 0) {
mEtAccount.setError(LOGIN_ERROR_TEXT);
} else if (password.length() == 0) {
mEtPassword.setError(LOGIN_ERROR_TEXT);
} else {
mCircularProgressButton.startAnimation();
mPresenter.doLogin(username, password);
PrefUtil.setAuthUsername(username);
}
break;
}
}
use of butterknife.OnClick in project coins-android by bubelov.
the class SignInActivity method onGoogleSignInClick.
@OnClick(R.id.sign_in_with_google)
public void onGoogleSignInClick() {
Intent signInIntent = Auth.GoogleSignInApi.getSignInIntent(googleApiClient);
startActivityForResult(signInIntent, REQUEST_GOOGLE_SIGN_IN);
}
use of butterknife.OnClick in project GwellDemo by dxsdyhm.
the class MainActivity method onSerialApp.
@OnClick(R.id.btn_serialapp)
public void onSerialApp() {
Intent serialapp = new Intent(this, SerialAppActivity.class);
// record.putExtra(LoginActivity.USERID, userId);
startActivity(serialapp);
}
use of butterknife.OnClick in project GwellDemo by dxsdyhm.
the class MainActivity method toDeviceTest.
@OnClick(R.id.btn_test)
public void toDeviceTest() {
Log.e("dxsTest", "toDeviceTest" + userId);
startActivity(new Intent(this, DeviceTestActivity.class));
}
use of butterknife.OnClick in project GwellDemo by dxsdyhm.
the class MainActivity method toMoniter.
@OnClick(R.id.btn_moniter)
public void toMoniter() {
Intent moniter = new Intent(this, MonitoerActivity.class);
moniter.putExtra(LoginActivity.USERID, userId);
startActivity(moniter);
Log.e("dxsTest", "toMoniter" + userId);
}
Aggregations