Shared element transition flicker when using DialogFragment and ScrollView

China☆狼群 提交于 2019-12-06 15:20:01

This looks like a bug in the Activity Transitions. Even though there is no shared element exit transition and no exit transition, we move the shared elements into the Window's root overlay. Normally this is not a problem, but because DialogFragment creates a dialog, which creates a new window, the shared element moves from the dialog's window into the Activity's window! you can see the shared element pop below the dialog temporarily and then rise above once the started Activity takes it.

It would be ideal to be able to fix this by moving shared elements to the correct overlay, not just the Activity Window's overlay. That way if you share elements from the dialog AND the activity's windows, they all appear in the right place.

For now, though, this is not going to work. Sorry.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!