Composable Function

rememberButtonGroupState

Creates and remembers a ButtonGroupState.

rememberButtonGroupState

Source set: Android
@Composable
public fun rememberButtonGroupState(initialItemIndex: Int = 0): ButtonGroupState

Creates and remembers a ButtonGroupState.

Parameters

initialItemIndex item index to be scrolled to when ButtonGroup is initialized
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: