ButtonStyle

data class ButtonStyle @JvmOverloads constructor(@ColorLong val containerColor: Long = 0, @ColorLong val disabledContainerColor: Long = 0, @ColorLong val contentColor: Long = 4278190080, @ColorLong val disabledContentColor: Long = 4278190080, val shape: Shape = Shape.Rectangle, val cornerRadius: CornerRadius = CornerRadius(), val borderStroke: BorderStroke? = null, val buttonElevation: ButtonElevation = ButtonElevation(), val contentPadding: Padding = Padding(), val textStyle: TextLabelStyle = TextLabelStyle(), val containerStyle: ContainerStyle = ContainerStyle())

Constructors

Link copied to clipboard
constructor(@ColorLong containerColor: Long = 0, @ColorLong disabledContainerColor: Long = 0, @ColorLong contentColor: Long = 4278190080, @ColorLong disabledContentColor: Long = 4278190080, shape: Shape = Shape.Rectangle, cornerRadius: CornerRadius = CornerRadius(), borderStroke: BorderStroke? = null, buttonElevation: ButtonElevation = ButtonElevation(), contentPadding: Padding = Padding(), textStyle: TextLabelStyle = TextLabelStyle(), containerStyle: ContainerStyle = ContainerStyle())

Properties

Link copied to clipboard

Border stroke details.

Link copied to clipboard

Button elevation in dp.

Link copied to clipboard

The 32-bit ARGB container color of this Button when enabled.

Link copied to clipboard

Top level button container style.

Link copied to clipboard
val contentColor: Long = 4278190080

The 32-bit ARGB content color of this Button when enabled.

Link copied to clipboard

Content padding in dp.

Link copied to clipboard

Corner radius of the button shape or border stroke.

Link copied to clipboard

The 32-bit ARGB container color of this Button when not enabled.

Link copied to clipboard
val disabledContentColor: Long = 4278190080

The 32-bit ARGB content color of this Button when not enabled.

Link copied to clipboard

Button shape.

Link copied to clipboard

The text label style. Can be used to set leading and trailing icons.