Reputation: 30147
Is it possible to draw unfilled figures on Android? By default circles and rectangles are filled.
Upvotes: 73
Views: 41295
Reputation: 81409
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);
Upvotes: 175