Android lollipop shared elements transition blink / flash

后端 未结 1 447
孤独总比滥情好
孤独总比滥情好 2020-12-31 00:53

I see strange thing in my shared element transition on Lollipop. Shared elements are flickering just before they are starting to animate (please see video https://www.youtub

相关标签:
1条回答
  • 2020-12-31 01:29

    Hurray! I've managed to solve this problem.

    Blinking screen is common problem described here: Blinking screen on image transition between activities (thx @AlexLockwood)

    Blinking shared element was caused by DrawerLayout. I was starting new Activity to soon. When I've moved ActivityCompat.startActivity to DrawerLayout.DrawerListener's onDrawerClosed method everything started working like a charm.

    0 讨论(0)
提交回复
热议问题