Created
June 14, 2020 07:42
-
-
Save guyca/0ef5a9528ee38b17d5618f9b1dc3eeba to your computer and use it in GitHub Desktop.
Animate the transition once the entering view is laid out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
override fun onViewFound(to: View) { | |
to.doOnLayout { | |
// Create transition animators after entering view is laid out | |
animateSharedElement(from, to) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment