Graphical bug while changing fragment with API 21

后端 未结 2 1619
甜味超标
甜味超标 2021-01-03 09:36

I have a graphical problem with my nexus 5. While I changing fragment, before new fragment appears, there is this big square with a portion of the new fragment. The transiti

相关标签:
2条回答
  • 2021-01-03 10:15

    SOLVED!!!

    I've found the solution. I've set the background color of root activity(also if it is never shown like in my case) and the graphical glitch is gone.

    0 讨论(0)
  • 2021-01-03 10:19

    This seems to be a bug in the android graphics lib on all nexus devices. I have a similar issue using the FragmentManger, see

    To fix this issue on nexus devices, add the

    <application android:hardwareAccelerated="false">

    tag, but this will make the app very slow.

    EDIT:

    There are several Threads in the Google issue tracker or at stackoverflow describing this problem

    Issue 82631

    Stackoverflow

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