In Android, an ImageView is a rectangle by default. How can I make it a rounded rectangle (clip off all 4 corners of my Bitmap to be rounded rectangles) in the ImageView? >
A quick xml solution -
You can set your desired width, height and radius on CardView and scaleType on ImageView.
With AndroidX, use