I'm trying to draw a rounded rectangle on a Canvas
object but nothing is showing up. I initialize the RoundRectShape
like so:
test = new RoundRectShape(new float[]{r, r, r, r, r, r, r, r}, new RectF(100, 100, 100, 100), null);
I then call test.draw(canvas)
but nothing shows up. Why is it not drawing, and did I create the RoundRectShape
correctly? Because I was quite confused about how I'm supposed to do it.