how do I get rid of this strange padding in the layout below:
use this:
cardView.setPadding(0,0,0,0); cardView.setUseCompatPadding(true); cardView.setContentPadding(-6,-6,-6,-6); cardView.setPreventCornerOverlap(false);