Search in sources :

Example 96 with OnClick

use of butterknife.OnClick in project animate by hitherejoe.

the class WindowTransitionsActivity method startSlideRightTransition.

@OnClick(R.id.text_slide_right)
public void startSlideRightTransition() {
    Intent intent = new Intent(WindowTransitionsActivity.this, TransitionInActivity.class);
    intent.putExtra(TransitionInActivity.EXTRA_TRANSITION, TransitionInActivity.TRANSITION_SLIDE_RIGHT);
    startActivityWithOptions(intent);
}
Also used : Intent(android.content.Intent) OnClick(butterknife.OnClick)

Example 97 with OnClick

use of butterknife.OnClick in project animate by hitherejoe.

the class WindowTransitionsActivity method startSlideBottomTransition.

@OnClick(R.id.text_slide_bottom)
public void startSlideBottomTransition() {
    Intent intent = new Intent(WindowTransitionsActivity.this, TransitionInActivity.class);
    intent.putExtra(TransitionInActivity.EXTRA_TRANSITION, TransitionInActivity.TRANSITION_SLIDE_BOTTOM);
    startActivityWithOptions(intent);
}
Also used : Intent(android.content.Intent) OnClick(butterknife.OnClick)

Example 98 with OnClick

use of butterknife.OnClick in project animate by hitherejoe.

the class WindowTransitionsActivity method startExplodeBounceTransition.

@OnClick(R.id.text_explode_bounce)
public void startExplodeBounceTransition() {
    Intent intent = new Intent(WindowTransitionsActivity.this, TransitionInActivity.class);
    intent.putExtra(TransitionInActivity.EXTRA_TRANSITION, TransitionInActivity.TRANSITION_EXPLODE_BOUNCE);
    startActivityWithOptions(intent);
}
Also used : Intent(android.content.Intent) OnClick(butterknife.OnClick)

Example 99 with OnClick

use of butterknife.OnClick in project animate by hitherejoe.

the class AnimatedVectorDrawablesActivity method onAddRemoveImageClick.

@OnClick(R.id.image_add_remove)
public void onAddRemoveImageClick() {
    AnimatedVectorDrawable drawable = mIsAddState ? mRemoveToAddDrawable : mAddToRemoveDrawable;
    mAddRemoveImage.setImageDrawable(drawable);
    drawable.start();
    mIsAddState = !mIsAddState;
}
Also used : AnimatedVectorDrawable(android.graphics.drawable.AnimatedVectorDrawable) OnClick(butterknife.OnClick)

Example 100 with OnClick

use of butterknife.OnClick in project ListenerMusicPlayer by hefuyicoder.

the class AlbumDetailFragment method onFabPlayClick.

@OnClick(R.id.fab_play)
public void onFabPlayClick() {
    Handler handler = new Handler();
    handler.postDelayed(new Runnable() {

        @Override
        public void run() {
            AlbumSongsAdapter adapter = (AlbumSongsAdapter) recyclerView.getAdapter();
            MusicPlayer.playAll(getActivity(), adapter.getSongIds(), 0, albumID, ListenerUtil.IdType.Album, false);
        }
    }, 150);
}
Also used : AlbumSongsAdapter(io.hefuyi.listener.ui.adapter.AlbumSongsAdapter) Handler(android.os.Handler) OnClick(butterknife.OnClick)

Aggregations

OnClick (butterknife.OnClick)181 Intent (android.content.Intent)82 View (android.view.View)10 Action0 (rx.functions.Action0)10 DialogInterface (android.content.DialogInterface)9 AlertDialog (android.support.v7.app.AlertDialog)9 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 Animator (android.animation.Animator)4