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();
}
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);
}
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;
}
}
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;
}
}
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);
}
Aggregations