The Developer Preview for Android 11 is now available; test it out and share your feedback.

PaintingStyle

enum class PaintingStyle
kotlin.Any
   ↳ kotlin.Enum<androidx.ui.graphics.PaintingStyle>
   ↳ androidx.ui.graphics.PaintingStyle

Strategies for painting shapes and paths on a canvas.

See Paint.style.

Summary

Enum values

Apply the Paint to the inside of the shape.

Apply the Paint to the edge of the shape.

Inherited extension functions

From androidx.compose
operator T

IMPORTANT: This global operator is TEMPORARY, and should be removed whenever an answer for contextual composers is reached.

Enum values

fill

enum val fill : PaintingStyle

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.

stroke

enum val stroke : PaintingStyle

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.