In my main activity there is a RelativeLayout
that has 2 childs:
ImageView
which serves as the backgroundLinearLa
Turns out my problem was caused by a completely unexpected source.
What happened is that I used a LinearLayout
as the parent of my two fragment containers.
Then, in my expanding animation I raised the bottom container to overlap the other one.
I don't really know why but since LinearLayout
is not supposed to hold overlapping children, switching to a RelativeLayout
or a FrameLayout
immediately solved the issue.
Since this cause might not be apparent from the code I posted, I do want to apologize for the lack of information, and will credit the most detailed answer as the best one.