ExperimentalCardShadow
class ExperimentalCardShadow( @ColorInt shadowStartColor: Int = Color.TRANSPARENT, @ColorInt shadowEndColor: Int = Color.TRANSPARENT, cornerRadius: Float = 0.0f, shadowSize: Float = 0.0f, shadowDx: Float = CardShadowDrawable.UNDEFINED, shadowDy: Float = CardShadowDrawable.UNDEFINED, hideTopShadow: Boolean = false, hideBottomShadow: Boolean = false, shadowLeftSizeOverride: Float = CardShadowDrawable.UNDEFINED, shadowRightSizeOverride: Float = CardShadowDrawable.UNDEFINED, style: Style? = null) : PrimitiveComponent
A component that is able to render the card's shadow.
Parameters
shadowStartColor
Start color for the shadow.
shadowEndColor
End color for the shadow.
cornerRadius
Corner radius for the card that shows the shadow.
shadowSize
Size of the shadow.
shadowDx
The x offset of the shadow.
shadowDy
The y offset of the shadow.
Constructors
Link copied to clipboard
constructor( @ColorInt shadowStartColor: Int = Color.TRANSPARENT, @ColorInt shadowEndColor: Int = Color.TRANSPARENT, cornerRadius: Float = 0.0f, shadowSize: Float = 0.0f, shadowDx: Float = CardShadowDrawable.UNDEFINED, shadowDy: Float = CardShadowDrawable.UNDEFINED, hideTopShadow: Boolean = false, hideBottomShadow: Boolean = false, shadowLeftSizeOverride: Float = CardShadowDrawable.UNDEFINED, shadowRightSizeOverride: Float = CardShadowDrawable.UNDEFINED, style: Style? = null)