ShapeComponent

constructor(shape: Shape = Shapes.rectShape, color: Int = Color.BLACK, dynamicShader: DynamicShader? = null, margins: Dimensions = emptyDimensions(), strokeWidthDp: Float = 0.0f, strokeColor: Int = Color.TRANSPARENT)

Parameters

shape

the Shape that will be drawn.

color

the color of the shape.

dynamicShader

an optional Shader provider used as the shape’s background.

margins

the Component’s margins.

strokeWidthDp

the width of the shape’s stroke (in dp).

strokeColor

the color of the stroke.