The design is a Linearlayout with a cardivew inside and a background color, that simple.
By clicking on any view (View 1, View 2 ...) other layouts are added dynamically. These new layouts "push" the Linearlayout that holds the Cardview. I think that this does not influence the effect I want to achieve.
I would like to get the effect that you see in the next image.
Any ideas?
For that You need to use ConstraintLayout