The CardView has by default elevation in API 21+, you can manipulate the elevation to be less than that of the ImageView
in Pre 21 you can use
overlayView.bringToFront();
root.requestLayout();
root.invalidate();
This will not work in 21+ if you have different elevation