Search in sources :

Example 21 with OnClick

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

Example 22 with OnClick

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

Example 23 with OnClick

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());
}
Also used : AnotherKey(com.zhuinden.simplestackdemomultistack.presentation.paths.main.cloudsync.another.AnotherKey) Key(com.zhuinden.simplestackdemomultistack.application.Key) OnClick(butterknife.OnClick)

Example 24 with OnClick

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

Example 25 with OnClick

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);
}
Also used : Animator(android.animation.Animator) AnimatorListenerAdapter(android.animation.AnimatorListenerAdapter) SuppressLint(android.annotation.SuppressLint) OnClick(butterknife.OnClick)

Aggregations

OnClick (butterknife.OnClick)465 Intent (android.content.Intent)206 View (android.view.View)24 AlertDialog (android.support.v7.app.AlertDialog)21 TextView (android.widget.TextView)18 File (java.io.File)18 Bundle (android.os.Bundle)16 BindView (butterknife.BindView)16 DialogInterface (android.content.DialogInterface)15 ArrayList (java.util.ArrayList)15 DialogFragment (com.rey.material.app.DialogFragment)13 SimpleDialog (com.rey.material.app.SimpleDialog)13 Uri (android.net.Uri)11 SimpleDateFormat (java.text.SimpleDateFormat)11 SuppressLint (android.annotation.SuppressLint)10 ImageView (android.widget.ImageView)10 LzyResponse (com.lzy.demo.model.LzyResponse)10 HorizontalChangeHandler (com.bluelinelabs.conductor.changehandler.HorizontalChangeHandler)9 List (java.util.List)9 Animator (android.animation.Animator)8