Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以在 Android 上绘制未填充的数字?默认情况下,圆形和矩形被填充。
Paint如果您只想要一个没有填充的轮廓,则需要将样式更改为描边:
Paint
Paint p = new Paint(); p.setStyle(Paint.Style.STROKE);