I need to set a round shape on top of an ImageView
Here is what I've tried so far:
float[] outerR = new float[]{8, 8, 8, 8, 8, 8, 8, 8};
RoundRectShape roundrect = new RoundRectShape(outerR, null, null);
ShapeDrawable drawable = new ShapeDrawable(roundrect);
This provides an oval shape. I need a round shape. How to fix this? Thx

First create a
xml drawablefile into yourdrawablefolder into theresdirectory. Then into thatxmlfile paste this code:and set this
drawableas thebackgroundof yourtextView. Yeah, that will solve your issue.