How to draw unfilled figures on Android?

Suzan Cioc picture Suzan Cioc · May 15, 2012 · Viewed 37.9k times · Source

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

Answer

K-ballo picture K-ballo · May 15, 2012

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);