I want to create this layout
this is a cardview (gray view) and imageview(blue view) for that i use this code
Just put CardView in other view like in FrameLayout. Just like below:
Screenshot: