PrimitiveCard

class PrimitiveCard(content: Component, cardBackgroundDrawable: Drawable? = null, cardBackgroundTransitionKey: String? = null, @ColorInt cardBackgroundColor: Int = Color.WHITE, cardBackgroundColorDv: DynamicValue<Int>? = null, @ColorInt clippingColor: Int = UNSET_CLIPPING, @ColorInt shadowStartColor: Int = DEFAULT_SHADOW_START_COLOR, @ColorInt shadowEndColor: Int = DEFAULT_SHADOW_END_COLOR, cornerRadius: Dimen? = null, elevation: Dimen? = null, shadowTopOverride: Dimen? = null, shadowBottomOverride: Dimen? = null, shadowLeftOverride: Dimen? = null, shadowRightOverride: Dimen? = null, transparencyEnabled: Boolean = false, disableClipTopLeft: Boolean = false, disableClipTopRight: Boolean = false, disableClipBottomLeft: Boolean = false, disableClipBottomRight: Boolean = false, style: Style = Style) : KComponent

A component that renders a given component into a card border with shadow.

Constructors

Link copied to clipboard
constructor(content: Component, cardBackgroundDrawable: Drawable? = null, cardBackgroundTransitionKey: String? = null, @ColorInt cardBackgroundColor: Int = Color.WHITE, cardBackgroundColorDv: DynamicValue<Int>? = null, @ColorInt clippingColor: Int = UNSET_CLIPPING, @ColorInt shadowStartColor: Int = DEFAULT_SHADOW_START_COLOR, @ColorInt shadowEndColor: Int = DEFAULT_SHADOW_END_COLOR, cornerRadius: Dimen? = null, elevation: Dimen? = null, shadowTopOverride: Dimen? = null, shadowBottomOverride: Dimen? = null, shadowLeftOverride: Dimen? = null, shadowRightOverride: Dimen? = null, transparencyEnabled: Boolean = false, disableClipTopLeft: Boolean = false, disableClipTopRight: Boolean = false, disableClipBottomLeft: Boolean = false, disableClipBottomRight: Boolean = false, style: Style = Style)

Types

Link copied to clipboard
class Builder(content: Component)

Java-friendly Builder for constructing PrimitiveCard. Allows setting only the properties you need -- all others use sensible defaults.

Link copied to clipboard
object Companion

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
Link copied to clipboard
Link copied to clipboard
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
open override fun ComponentScope.render(): Component
Link copied to clipboard
open override fun resolveDeferred(calculationContext: CalculationContext, componentContext: ComponentContext, parentContext: ComponentContext): ComponentResolveResult
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