Parent activity becomes invisible on exit transition

▼魔方 西西 提交于 2019-12-03 16:47:23

I was having the same problem when i use ActivityOptionsCompat.makeSceneTransitionAnimation. I resolved it by remove the activiy flag: android:launchMode="singleInstance" it may caused by different task can't use translation animation.

I had a similar problem and solved it in onCreate of the target Activity by adding this snippet just after calling setContentView:

    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
        getWindow().setEnterTransition(null);
    }
Aba

I was facing this problem before I realized that I was calling supportPostponeEnterTransition() without calling supportStartPostponedEnterTransition(). I had to call these because I was using Glide to load the image.

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