use of butterknife.OnClick in project DraggablePanel by pedrovgs.
the class MainActivity method openSimpleSampleActivity.
@OnClick(R.id.iv_places)
void openSimpleSampleActivity() {
Intent intent = new Intent(this, PlacesSampleActivity.class);
startActivity(intent);
}
use of butterknife.OnClick in project Weather by Sparker0i.
the class AboutActivity method onClick.
@OnClick(R.id.fab)
void onClick() {
Intent intent = new Intent(Intent.ACTION_SENDTO, Uri.parse("mailto:" + Constants.MAIL));
startActivity(Intent.createChooser(intent, getString(R.string.choose_app)));
}
use of butterknife.OnClick in project simple-stack by Zhuinden.
the class CloudSyncView method clickButton.
@OnClick(R.id.first_button)
public void clickButton(View view) {
Key key = Backstack.getKey(getContext());
key.selectDelegate(getContext()).getBackstack().goTo(AnotherKey.create());
}
use of butterknife.OnClick in project bilibili-android-client by HotBitmapGG.
the class VideoIntroductionFragment method share.
@OnClick(R.id.btn_share)
void share() {
Intent intent = new Intent(Intent.ACTION_SEND);
intent.setType("text/plain");
intent.putExtra(Intent.EXTRA_SUBJECT, "分享");
intent.putExtra(Intent.EXTRA_TEXT, "来自「哔哩哔哩」的分享:" + mVideoDetailsInfo.getDesc());
startActivity(Intent.createChooser(intent, mVideoDetailsInfo.getTitle()));
}
use of butterknife.OnClick in project Telecine by JakeWharton.
the class OverlayView method onStartClicked.
@OnClick(R.id.record_overlay_start)
void onStartClicked() {
recordingView.setVisibility(VISIBLE);
int centerX = (int) (startView.getX() + (startView.getWidth() / 2));
int centerY = (int) (startView.getY() + (startView.getHeight() / 2));
Animator reveal = createCircularReveal(recordingView, centerX, centerY, 0, getWidth() / 2f);
reveal.addListener(new AnimatorListenerAdapter() {
@Override
public void onAnimationEnd(Animator animation) {
buttonsView.setVisibility(GONE);
}
});
reveal.start();
postDelayed(new Runnable() {
@Override
public void run() {
if (showCountDown) {
showCountDown();
} else {
countdownComplete();
}
}
}, showCountDown ? COUNTDOWN_DELAY : NON_COUNTDOWN_DELAY);
}
Aggregations