Search in sources :

Example 51 with OnClick

use of butterknife.OnClick in project Atom_Android by Rogrand-Dev.

the class ToastActivity method showNormalToastWIcon.

@OnClick(R.id.btn_normal_toast_w_icon)
void showNormalToastWIcon() {
    Drawable icon = getResources().getDrawable(R.drawable.ic_pets_white_48dp);
    Toasty.normal(ToastActivity.this, "验证码已发送,请查收", icon).show();
}
Also used : Drawable(android.graphics.drawable.Drawable) OnClick(butterknife.OnClick)

Example 52 with OnClick

use of butterknife.OnClick in project Atom_Android by Rogrand-Dev.

the class MyTabFragment method toUserInfoActivity.

@OnClick(R.id.rlyt_user_info)
void toUserInfoActivity() {
    Intent intent = new Intent(mContext, UserInfoActivity.class);
    mContext.startActivity(intent);
}
Also used : Intent(android.content.Intent) OnClick(butterknife.OnClick)

Example 53 with OnClick

use of butterknife.OnClick in project ride-read-android by Ride-Read.

the class MapFragment method onClick.

@OnClick({ R.id.img_clear, R.id.btn_location, R.id.btn_recently })
public void onClick(View view) {
    switch(view.getId()) {
        case R.id.btn_location:
            LatLng center = new LatLng(AMapLocationUtils.getLatitude(), AMapLocationUtils.getLongitude());
            mAMap.moveCamera(CameraUpdateFactory.changeLatLng(center));
            break;
        case R.id.btn_recently:
            loadMapMoments(mCurZoom);
            break;
        case R.id.img_clear:
            mEdtSearch.setText("");
            break;
    }
}
Also used : LatLng(com.amap.api.maps.model.LatLng) OnClick(butterknife.OnClick)

Example 54 with OnClick

use of butterknife.OnClick in project ride-read-android by Ride-Read.

the class UserMomentsActivity method onViewClicked.

@OnClick({ R.id.btn_personality_map, R.id.btn_attention, R.id.btn_message })
public void onViewClicked(View view) {
    switch(view.getId()) {
        case R.id.btn_personality_map:
            Bundle bundle = new Bundle();
            bundle.putInt(PersonalityMapActivity.USER_ID, mUserInfo.getUid());
            gotoActivity(PersonalityMapActivity.class, bundle);
            break;
        case R.id.btn_attention:
            followUser();
            break;
        case R.id.btn_message:
            ToastUtils.show("发消息");
            sendMsg();
            break;
    }
}
Also used : Bundle(android.os.Bundle) OnClick(butterknife.OnClick)

Example 55 with OnClick

use of butterknife.OnClick in project Android-Bootstrap by Bearded-Hen.

the class BootstrapButtonGroupExample method onChildAddExampleClicked.

@OnClick(R.id.bbutton_group_child_add_btn)
void onChildAddExampleClicked() {
    int count = childChange.getChildCount();
    BootstrapButton button = new BootstrapButton(this);
    button.setText(String.format("%d", count + 1));
    childChange.addView(button);
}
Also used : BootstrapButton(com.beardedhen.androidbootstrap.BootstrapButton) 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