Object

ButtonGroupDefaults

Default values used with ButtonGroup.

Source set: Android
public object ButtonGroupDefaults

Default values used with ButtonGroup.

Properties

HorizontalArrangement

Source set: Android
public val HorizontalArrangement: Arrangement.Horizontal =
        Arrangement.spacedBy(8.dp, Alignment.CenterHorizontally)

The default arrangement used to horizontally space ButtonGroup children.

VerticalAlignment

Source set: Android
public val VerticalAlignment: Alignment.Vertical = Alignment.CenterVertically

The default alignment used to vertically align ButtonGroup children.

ContentPadding

Source set: Android
public val ContentPadding: PaddingValues = PaddingValues(horizontal = 44.dp)

Internal padding that is applied around the ButtonGroup's children.

AnimateScrollToItemAnimationSpec

Source set: Android
public val AnimateScrollToItemAnimationSpec: FiniteAnimationSpec<Float> =
        SpringSpec(stiffness = Spring.StiffnessMediumLow)

The default animation spec used by ButtonGroupState.animateScrollToItem.

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: