I want to create this layout
this is a cardview (gray view) and imageview(blue view) for that i use this code
Try:
Use a RelativeLayout
Align the ImageView to the parent right/end and add a right/end margin
Align the FAB to the top of the card view and add a negative margin