Search in sources :

Example 76 with OnClick

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;
    }
}
Also used : RegisterActivity(com.twtstudio.bbs.bdpqchen.bbs.auth.register.RegisterActivity) ReplaceUserActivity(com.twtstudio.bbs.bdpqchen.bbs.auth.replaceUser.ReplaceUserActivity) Intent(android.content.Intent) OnClick(butterknife.OnClick)

Example 77 with OnClick

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);
}
Also used : Intent(android.content.Intent) OnClick(butterknife.OnClick)

Example 78 with OnClick

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);
}
Also used : Intent(android.content.Intent) OnClick(butterknife.OnClick)

Example 79 with OnClick

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));
}
Also used : Intent(android.content.Intent) OnClick(butterknife.OnClick)

Example 80 with OnClick

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);
}
Also used : Intent(android.content.Intent) OnClick(butterknife.OnClick)

Aggregations

OnClick (butterknife.OnClick)202 Intent (android.content.Intent)88 AlertDialog (android.support.v7.app.AlertDialog)11 View (android.view.View)11 DialogInterface (android.content.DialogInterface)10 Action0 (rx.functions.Action0)10 Bundle (android.os.Bundle)8 GCM (com.kickstarter.models.pushdata.GCM)8 PushNotificationEnvelope (com.kickstarter.services.apiresponses.PushNotificationEnvelope)8 File (java.io.File)8 TextView (android.widget.TextView)7 ActivityOptions (android.app.ActivityOptions)6 LzyResponse (com.lzy.demo.model.LzyResponse)6 ServerModel (com.lzy.demo.model.ServerModel)6 Subscription (rx.Subscription)6 NonNull (android.support.annotation.NonNull)5 ActivityOptionsCompat (android.support.v4.app.ActivityOptionsCompat)5 CustomBubblePopup (com.flyco.dialogsamples.extra.CustomBubblePopup)5 Activity (com.kickstarter.models.pushdata.Activity)5 ArrayList (java.util.ArrayList)5