How to avoid View flicker during Android transition

تعرفه تبلیغات در سایت

آخرین مطالب

امکانات وب

Vote count: 0

I have got a strange issue with transitions between fragments.

I have a first fragment which has a list, a frame layout with another fragment and floating action button. Here is the XML:

    

    



It looks like that:

here is how it looks in the preview

Now I have a transition to another Fragment (fade). Everything looks fine 8 times out of 10. But sometimes at the beginning of the animation the FrameLayout is brought to the front as if it had higher elevation than the action button. Bottom part of the button is then hidden behind the frame layout for a short while until the animation is finished.

Exactly the same issue occurs if I use the action bar from compat library.

Does anyone know how to avoid this occasional flicker?

asked 1 min ago
Yuriy Kulikov

نویسنده : استخدام کار بازدید : 8 تاريخ : سه شنبه 4 ارديبهشت 1397 ساعت: 5:28

فهرست وبلاگ