setShadow

fun setShadow(    radius: Float,     dx: Float = 0.0f,     dy: Float = 0.0f,     color: Int = DEF_SHADOW_COLOR,     applyElevationOverlay: Boolean = false): ShapeComponent

Applies a drop shadow.

Parameters

radius

the blur radius.

dx

the horizontal offset.

dy

the vertical offset.

color

the shadow color.

applyElevationOverlay

whether to apply an elevation overlay to the shape.