Is there any way to prevent partial overlapping of the stroke
on the shape drawable
. I prefer to overlap the stroke completely on the borders of the sh
Try to divide it into two shapes - one for stroke and one for rectangle. In this solution I manipulate size of rectangle so that I can change its relation with borders.
-
-
You can adjust the offset to get outer or inner stroke.
These values come from difference of size of transparent rectangle (stroke layer) and the green one. In your case they will be 20dp
or none.