{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

PaintingStyle.Companion

public static class PaintingStyle.Companion


Summary

Public methods

static final @NonNull PaintingStyle

Apply the Paint to the inside of the shape.

static final @NonNull PaintingStyle

Apply the Paint to the edge of the shape.

Public methods

getFill

public static final @NonNull PaintingStyle getFill()

Apply the Paint to the inside of the shape. For example, when applied to the Canvas.drawCircle call, this results in a disc of the given size being painted.

getStroke

public static final @NonNull PaintingStyle getStroke()

Apply the Paint to the edge of the shape. For example, when applied to the Canvas.drawCircle call, this results is a hoop of the given size being painted. The line drawn on the edge will be the width given by the Paint.strokeWidth property.