Created
April 5, 2018 10:44
-
-
Save Nonda95/95d57d45fdf0590c3e804885ed211220 to your computer and use it in GitHub Desktop.
Reload image when transition ends
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 onCreate(savedInstanceState: Bundle?) { | |
... | |
window.sharedElementEnterTransition = TransitionSet() | |
.addTransition(ChangeImageTransform()) | |
.addTransition(ChangeBounds()) | |
.apply { | |
doOnEnd { detailImage.load(url) } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment