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