Why is the stroke at the corners of the rectangle so ugly? If I draw the shape in xml, it works fine (at least it works in activities, I could not test it with a widget).
Paint strokePaint = new Paint();
strokePaint.setARGB(255, 16, 23, 131);
strokePaint.setStyle(Paint.Style.STROKE);
strokePaint.setStrokeWidth(8);
I am testing on hdpi density. Has anyone met this problem?
Try with:
strokePaint.setAntiAlias(true)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With