Object

RadioButtonDefaults

Defaults used in RadioButton.

Source set: Android
object RadioButtonDefaults

Defaults used in RadioButton.

Functions

colors

Source set: Android
@Composable fun colors() = MaterialTheme.colorScheme.defaultRadioButtonColors

Creates a RadioButtonColors that will animate between the provided colors according to the Material specification.

colors

Source set: Android
@Composable
    fun colors(
        selectedColor: Color = Color.Unspecified,
        unselectedColor: Color = Color.Unspecified,
        disabledSelectedColor: Color = Color.Unspecified,
        disabledUnselectedColor: Color = Color.Unspecified,
    ): RadioButtonColors

Creates a RadioButtonColors that will animate between the provided colors according to the Material specification.

Parameters

selectedColor the color to use for the RadioButton when selected and enabled.
unselectedColor the color to use for the RadioButton when unselected and enabled.
disabledSelectedColor the color to use for the RadioButton when disabled and selected.
disabledUnselectedColor the color to use for the RadioButton when disabled and not selected.

Return

the resulting RadioButtonColors used for the RadioButton

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: