Is it possible to draw unfilled figures on Android? By default circles and rectangles are filled.
是否有可能在Android上绘制未填充的数据?默认情况下,填充圆圈和矩形。
1 个解决方案
#1
139
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);
#1
139
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);