ShapeComponent
open class ShapeComponent(val shape: Shape = Shapes.rectShape, color: Int = Color.BLACK, val dynamicShader: DynamicShader? = null, margins: Dimensions = emptyDimensions(), val strokeWidthDp: Float = 0.0f, strokeColor: Int = Color.TRANSPARENT) : Component
ShapeComponent is a Component that draws a shape.
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.
Inheritors
Constructors
Link copied to clipboard
constructor(shape: Shape = Shapes.rectShape, color: Int = Color.BLACK, dynamicShader: DynamicShader? = null, margins: Dimensions = emptyDimensions(), strokeWidthDp: Float = 0.0f, strokeColor: Int = Color.TRANSPARENT)