如何绘制填充圆形和矩形的机器人?矩形、圆形、机器人

2023-09-06 01:28:56 作者:别逼我耍流氓

是否可以借鉴Android的空缺数字?默认情况下圆和矩形填充。

Is it possible to draw unfilled figures on Android? By default circles and rectangles are filled.

推荐答案

您需要更改油漆风格,中风,如果你只是想有没有填充的轮廓:

You need to change the Paint style to stroke if you just want an outline with no fill:

Paint p = new Paint();
p.setStyle(Paint.Style.STROKE);