'How to solve the shadow bug caused by cardElevation in Transition?

I am currently using the shared element transition, and when I return, cardview has an abnormal shadow problem. The initial investigation is that it is caused by cardElevation, but I don't know how to solve it. enter image description here

Thank you very much.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source