Slide 17
Slide 17 text
public void onFabPressed(View view) {
Intent i = new Intent (TransitionFirstActivity.this,
TransitionSecondActivity.class);
ActivityOptions transitionActivityOptions = ActivityOptions
.makeSceneTransitionAnimation(mContext,
Pair.create(mFabButton, "fab"),
Pair.create(mHeader, "holder1"));
startActivity(i, transitionActivityOptions.toBundle());
}