Class

ButtonSize

ButtonSize represents the different size variants of a Button.

Source set: Android
public class ButtonSize internal constructor(private val value: Int)

ButtonSize represents the different size variants of a Button. ButtonSize will affect default values used inside a Button, such as the minimum height and the size of icons.

Members

Companion

Source set: Android
public companion object

Properties

Medium

Source set: Android
public val Medium: ButtonSize = ButtonSize(1)

ButtonSize representing a medium Button. This is the default size.

Large

Source set: Android
public val Large: ButtonSize = ButtonSize(2)

ButtonSize representing a large Button.

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: