So I have a RecyclerView with a bunch of CardView's that are set to expand on button press. How I do it is by having a hidden layout (GONE) and when you press the expand button it will expand (or in other words make it visible) the layout. It uses the animations from animateLayoutChanges in XML.
The problem is that while the individual card being expanded animates properly, the other cards don't. If I expand or collapse one card, the rest immediately pop to their proper position with no animations. Where this proves troublesome in specific is when you collapse it. When you collapse the card it will immediately be under the card below it as the one below it hasn't animated.
How can I get these other cards to animate with the one being expanded?
As you can see in the gif below, since the card below it does not animate its movements, the top one ends up covered by the one below it and when expanding it the one below it is immediately pushed with no anims.
EDIT: I moved to using this library for the Expandable layout and it has allowed me to bypass my problem all together and simply have one that works.