Composable Function

RemoteRadioButton

The Wear Material RemoteRadioButton offers four slots and a specific layout for an icon, a label, a secondaryLabel and a radio selection control.

RemoteRadioButtonSample

@Sampled
@RemoteComposable
@Composable
@WearPreviewDevices
@PreviewWrapper(RemoteComponentPreviewWrapper::class)
public fun RemoteRadioButtonSample(modifier: RemoteModifier = RemoteModifier) {
    val selected = remember { MutableRemoteBoolean(true) }

    RemoteRadioButton(
        selected = selected,
        onSelect = valueChangeAction(selected, true.rb),
        modifier = modifier,
        label = { RemoteText("Radio Button".rs) },
    )
}
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: