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:
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?