ContainerStyle

data class ContainerStyle @JvmOverloads constructor(@ColorLong val color: Long = ContainerConstants.backgroundColor, val shape: Shape = ContainerConstants.shape, val cornerRadius: CornerRadius = CornerRadius(ContainerConstants.radius), val borderStroke: BorderStroke? = null, val width: Int? = null, val height: Int? = null, val padding: Padding? = null, val margin: Margin? = null)

Constructors

Link copied to clipboard
constructor(@ColorLong color: Long = ContainerConstants.backgroundColor, shape: Shape = ContainerConstants.shape, cornerRadius: CornerRadius = CornerRadius(ContainerConstants.radius), borderStroke: BorderStroke? = null, width: Int? = null, height: Int? = null, padding: Padding? = null, margin: Margin? = null)

Properties

Link copied to clipboard

Border stroke details.

Link copied to clipboard
val color: Long

The 32-bit ARGB container background color. Transparent by default.

Link copied to clipboard

Corner radius in dp. Applicable for RoundCorner and CutCorner shapes.

Link copied to clipboard
val height: Int? = null

Height in dp.

Link copied to clipboard
val margin: Margin? = null
Link copied to clipboard
val padding: Padding? = null
Link copied to clipboard

Shape of the background.

Link copied to clipboard
val width: Int? = null

Width in dp.