ExperimentalTransparencyEnabledCardClip

class ExperimentalTransparencyEnabledCardClip(    backgroundDrawable: Drawable? = null,     cardBackgroundColor: Int = DEFAULT_BACKGROUND_COLOR,     clippingColor: Int = DEFAULT_CLIPPING_COLOR,     cornerRadius: Float = 0.0f,     disableClipTopLeft: Boolean = false,     disableClipTopRight: Boolean = false,     disableClipBottomLeft: Boolean = false,     disableClipBottomRight: Boolean = false,     @ColorInt dynamicCardBackgroundColor: DynamicValue<Int>? = null,     style: Style? = null) : PrimitiveComponent

A component that paints a card with rounded edges to perform a clipping operation on the component being rendered below it. Used in CardSpec when transparencyEnabled(true).

Parameters

backgroundDrawable

Drawable to use as a background.

cardBackgroundColor

Background color for the drawable.

clippingColor

Color for corner clipping.

cornerRadius

Radius for corner clipping.

disableClipTopLeft

If set, opt out of clipping the top-left corner.

disableClipTopRight

If set, opt out of clipping the top-right corner.

disableClipBottomLeft

If set, opt out of clipping the bottom-left corner.

disableClipBottomRight

If set, opt out of clipping the bottom-right corner.

Constructors

Link copied to clipboard
constructor(    backgroundDrawable: Drawable? = null,     cardBackgroundColor: Int = DEFAULT_BACKGROUND_COLOR,     clippingColor: Int = DEFAULT_CLIPPING_COLOR,     cornerRadius: Float = 0.0f,     disableClipTopLeft: Boolean = false,     disableClipTopRight: Boolean = false,     disableClipBottomLeft: Boolean = false,     disableClipBottomRight: Boolean = false,     @ColorInt dynamicCardBackgroundColor: DynamicValue<Int>? = null,     style: Style? = null)

Functions

Link copied to clipboard
Link copied to clipboard
operator override fun equals(@Nullable other: Any?): Boolean
Link copied to clipboard
Link copied to clipboard
open fun <T : Any> getDebugAttribute(p0: AttributeKey<T>): T & Any
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
override fun getSimpleName(): String
Link copied to clipboard
fun getTypeId(): Int
Link copied to clipboard
override fun hashCode(): Int
Link copied to clipboard
override fun isEquivalentTo(other: Component?): Boolean
Link copied to clipboard
override fun makeShallowCopy(): Component
Link copied to clipboard
fun measure(p0: ComponentContext, p1: Int, p2: Int, p3: Size)
fun measure(p0: ComponentContext, p1: Int, p2: Int, p3: Size, p4: Boolean)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun <T : Any> setDebugAttributeKey(attributeKey: AttributeKey<T>, value: T & Any)
Link copied to clipboard
override fun toString(): String