1 min readMay 31, 2018
Is there a way to force the view to apply the Window Inset first before doing the Shared Element Transition?
What you have to do is to pause transition until the view hierarchy in second activity is laid out and only when it is already laid out — continue with transition. Than can be achieved using supportPostponeEnterTransition()
and supportStartPostponedEnterTransition()
. See example of usage in this article.