如何绘制填充圆形和矩形的机器人? [英] How to draw unfilled circle and rectangle on android?

查看:123
本文介绍了如何绘制填充圆形和矩形的机器人?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以借鉴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);

这篇关于如何绘制填充圆形和矩形的机器人?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆