Skip to content

Instantly share code, notes, and snippets.

@hitherejoe
Last active November 17, 2015 08:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hitherejoe/c3a430051c75f8b5b783 to your computer and use it in GitHub Desktop.
Save hitherejoe/c3a430051c75f8b5b783 to your computer and use it in GitHub Desktop.
Pair participants = new Pair<>(mSquareView, ViewCompat.getTransitionName(mSquareView));
ActivityOptionsCompat transitionActivityOptions =
ActivityOptionsCompat.makeSceneTransitionAnimation(
SharedTransitionsActivity.this, participants);
ActivityCompat.startActivity(SharedTransitionsActivity.this,
intent, transitionActivityOptions.toBundle());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment