72

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

Zoe
  • 27,060
  • 21
  • 118
  • 148
Suzan Cioc
  • 29,281
  • 63
  • 213
  • 385

1 Answers1

175

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);
K-ballo
  • 80,396
  • 20
  • 159
  • 169