Object

ButtonGroupDefaults

Contains the default values used by ButtonGroup

Source set: Android
public object ButtonGroupDefaults

Contains the default values used by ButtonGroup

Properties

minimumVerticalListContentPadding

Source set: Android
public val minimumVerticalListContentPadding: Dp

The minimum vertical content padding for the list when a ButtonGroup is placed at the top or bottom edge. Recommended for use with androidx.wear.compose.foundation.lazy.TransformingLazyColumnItemScope's androidx.wear.compose.foundation.lazy.TransformingLazyColumnItemScope.minimumVerticalContentPadding, which allows items to choose a preferred content padding for the list. TransformingLazyColumn takes its contentPadding as the maximum of the preferred content padding values and its own contentPadding parameter.

ExpansionWidth

Source set: Android
public val ExpansionWidth: Dp = 24.dp

How much buttons grow (and neighbors shrink) when pressed.

Spacing

Source set: Android
public val Spacing: Dp = 4.dp

Spacing between buttons.

MinWidth

Source set: Android
public val MinWidth: Dp = minimumInteractiveComponentSize

Default for the minimum width of buttons in a ButtonGroup

Functions

fullWidthPaddings

Source set: Android
@Composable
    public fun fullWidthPaddings(): PaddingValues

Return the recommended padding to use as the contentPadding of a ButtonGroup, when it takes the full width of the screen.

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: