Added in API level 1

Style

class Style
kotlin.Any
   ↳ kotlin.Enum<android.graphics.Paint.Style>
   ↳ android.graphics.Paint.Style

The Style specifies if the primitive being drawn is filled, stroked, or both (in the same color). The default is FILL.

Summary

Enum values

Geometry and text drawn with this style will be filled, ignoring all stroke-related settings in the paint.

Geometry and text drawn with this style will be both filled and stroked at the same time, respecting the stroke-related fields on the paint.

Geometry and text drawn with this style will be stroked, respecting the stroke-related fields on the paint.

Enum values

FILL

Added in API level 1
enum val FILL : Paint.Style

Geometry and text drawn with this style will be filled, ignoring all stroke-related settings in the paint.

FILL_AND_STROKE

Added in API level 1
enum val FILL_AND_STROKE : Paint.Style

Geometry and text drawn with this style will be both filled and stroked at the same time, respecting the stroke-related fields on the paint. This mode can give unexpected results if the geometry is oriented counter-clockwise. This restriction does not apply to either FILL or STROKE.

STROKE

Added in API level 1
enum val STROKE : Paint.Style

Geometry and text drawn with this style will be stroked, respecting the stroke-related fields on the paint.