Skip to content

Instantly share code, notes, and snippets.

@jossiwolf
Created December 28, 2017 00:30
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 jossiwolf/80973206618ba2feb35757a54ae5d1c6 to your computer and use it in GitHub Desktop.
Save jossiwolf/80973206618ba2feb35757a54ae5d1c6 to your computer and use it in GitHub Desktop.
val inSet = TransitionSet()
val inflater = TransitionInflater.from(this)
val transition = inflater.inflateTransition(R.transition.arc)
inSet.apply {
addTransition(transition)
duration = 380
interpolator = AccelerateDecelerateInterpolator()
}
window.sharedElementEnterTransition = inSet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment