DashedShape

class DashedShape(val shape: Shape = Shape.Rectangle, val dashLengthDp: Float = Defaults.DASHED_SHAPE_DASH_LENGTH, val gapLengthDp: Float = Defaults.DASHED_SHAPE_GAP_LENGTH, val fitStrategy: DashedShape.FitStrategy = FitStrategy.Resize) : Shape

DashedShape draws a dashed line by interchangeably drawing the provided shape and leaving a gap.

Constructors

Link copied to clipboard
constructor(shape: Shape = Shape.Rectangle, dashLengthDp: Float = Defaults.DASHED_SHAPE_DASH_LENGTH, gapLengthDp: Float = Defaults.DASHED_SHAPE_GAP_LENGTH, fitStrategy: DashedShape.FitStrategy = FitStrategy.Resize)

Types

Link copied to clipboard

Defines how a DashedShape is to be rendered.

Properties

Link copied to clipboard

the dash length in dp.

Link copied to clipboard
Link copied to clipboard

the gap length in dp.

Link copied to clipboard

the base Shape from which to create the DashedShape.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun outline(context: MeasuringContext, path: Path, left: Float, top: Float, right: Float, bottom: Float)

Adds an outline of the Shape to path. left, top, right, and bottom define the outline bounds.