Android
public object RadioButtonDefaults
Contains the default values used by RadioButtons and SplitRadioButtons
Functions
radioButtonColors
@Composable
public fun radioButtonColors(): RadioButtonColors
Creates a RadioButtonColors for use in a RadioButton.
radioButtonColors
@Composable
public fun radioButtonColors(
selectedContainerColor: Color = Color.Unspecified,
selectedContentColor: Color = Color.Unspecified,
selectedSecondaryContentColor: Color = Color.Unspecified,
selectedIconColor: Color = Color.Unspecified,
selectedControlColor: Color = Color.Unspecified,
unselectedContainerColor: Color = Color.Unspecified,
unselectedContentColor: Color = Color.Unspecified,
unselectedSecondaryContentColor: Color = Color.Unspecified,
unselectedIconColor: Color = Color.Unspecified,
unselectedControlColor: Color = Color.Unspecified,
disabledSelectedContainerColor: Color = Color.Unspecified,
disabledSelectedContentColor: Color = Color.Unspecified,
disabledSelectedSecondaryContentColor: Color = Color.Unspecified,
disabledSelectedIconColor: Color = Color.Unspecified,
disabledSelectedControlColor: Color = Color.Unspecified,
disabledUnselectedContainerColor: Color = Color.Unspecified,
disabledUnselectedContentColor: Color = Color.Unspecified,
disabledUnselectedSecondaryContentColor: Color = Color.Unspecified,
disabledUnselectedIconColor: Color = Color.Unspecified,
disabledUnselectedControlColor: Color = Color.Unspecified,
): RadioButtonColors
Creates a RadioButtonColors for use in a RadioButton.
Parameters
| selectedContainerColor | The container color of the RadioButton when enabled and selected. |
| selectedContentColor | The content color of the RadioButton when enabled and selected. |
| selectedSecondaryContentColor | The secondary content color of the RadioButton when enabled and selected, used for secondaryLabel content. |
| selectedIconColor | The icon color of the RadioButton when enabled and selected. |
| selectedControlColor | The selection control color of the RadioButton when enabled and selected. |
| unselectedContainerColor | The container color of the RadioButton when enabled and not selected. |
| unselectedContentColor | The content color of a RadioButton when enabled and not selected. |
| unselectedSecondaryContentColor | The secondary content color of this RadioButton when enabled and not selected, used for secondaryLabel content |
| unselectedIconColor | The icon color of the RadioButton when enabled and not selected. |
| unselectedControlColor | The selection control color of the RadioButton when enabled and not selected. |
| disabledSelectedContainerColor | The container color of the RadioButton when disabled and selected. |
| disabledSelectedContentColor | The content color of the RadioButton when disabled and selected. |
| disabledSelectedSecondaryContentColor | The secondary content color of the RadioButton when disabled and selected, used for the secondary content. |
| disabledSelectedIconColor | The icon color of the RadioButton when disabled and selected. |
| disabledSelectedControlColor | The selection control color of the RadioButton when disabled and selected. |
| disabledUnselectedContainerColor | The container color of the RadioButton when disabled and not selected. |
| disabledUnselectedContentColor | The content color of the RadioButton when disabled and not selected. |
| disabledUnselectedSecondaryContentColor | The secondary content color of the RadioButton when disabled and not selected, used for secondary label content. |
| disabledUnselectedIconColor | The icon color of the RadioButton when disabled and not selected. |
| disabledUnselectedControlColor | The selection control color of the RadioButton when disabled and not selected. |
splitRadioButtonColors
@Composable
public fun splitRadioButtonColors(): SplitRadioButtonColors
Creates a SplitRadioButtonColors for use in a SplitRadioButton.
splitRadioButtonColors
@Composable
public fun splitRadioButtonColors(
selectedContainerColor: Color = Color.Unspecified,
selectedContentColor: Color = Color.Unspecified,
selectedSecondaryContentColor: Color = Color.Unspecified,
selectedSplitContainerColor: Color = Color.Unspecified,
selectedControlColor: Color = Color.Unspecified,
unselectedContainerColor: Color = Color.Unspecified,
unselectedContentColor: Color = Color.Unspecified,
unselectedSecondaryContentColor: Color = Color.Unspecified,
unselectedSplitContainerColor: Color = Color.Unspecified,
unselectedControlColor: Color = Color.Unspecified,
disabledSelectedContainerColor: Color = Color.Unspecified,
disabledSelectedContentColor: Color = Color.Unspecified,
disabledSelectedSecondaryContentColor: Color = Color.Unspecified,
disabledSelectedSplitContainerColor: Color = Color.Unspecified,
disabledSelectedControlColor: Color = Color.Unspecified,
disabledUnselectedContainerColor: Color = Color.Unspecified,
disabledUnselectedContentColor: Color = Color.Unspecified,
disabledUnselectedSecondaryContentColor: Color = Color.Unspecified,
disabledUnselectedSplitContainerColor: Color = Color.Unspecified,
disabledUnselectedControlColor: Color = Color.Unspecified,
): SplitRadioButtonColors
Creates a SplitRadioButtonColors for use in a SplitRadioButton.
Parameters
| selectedContainerColor | The container color of the SplitRadioButton when enabled and selected. |
| selectedContentColor | The content color of the SplitRadioButton when enabled and selected. |
| selectedSecondaryContentColor | The secondary content color of the SplitRadioButton when enabled and selected, used for secondaryLabel content. |
| selectedSplitContainerColor | The split container color of the SplitRadioButton when enabled and selected. |
| selectedControlColor | The color of the radio control when selected |
| unselectedContainerColor | The container color of the SplitRadioButton when enabled and not selected. |
| unselectedContentColor | The content color of the SplitRadioButton when enabled and not selected. |
| unselectedSecondaryContentColor | The secondary content color of the SplitRadioButton when enabled and not selected, used for secondaryLabel content. |
| unselectedSplitContainerColor | The split container color of the SplitRadioButton when enabled and not selected. |
| unselectedControlColor | The color of the radio control when unselected |
| disabledSelectedContainerColor | The container color of the SplitRadioButton when disabled and selected. |
| disabledSelectedContentColor | The content color of the SplitRadioButton when disabled and selected. |
| disabledSelectedSecondaryContentColor | The secondary content color of the SplitRadioButton when disabled and selected, used for secondaryLabel content. |
| disabledSelectedSplitContainerColor | The split container color of the SplitRadioButton when disabled and selected. |
| disabledSelectedControlColor | The radio control color when disabled and selected. |
| disabledUnselectedContainerColor | The container color of the SplitRadioButton when disabled and not selected. |
| disabledUnselectedContentColor | The content color of the SplitRadioButton when disabled and not selected. |
| disabledUnselectedSecondaryContentColor | The secondary content color of the SplitRadioButton when disabled and not selected, used for secondaryLabel content. |
| disabledUnselectedSplitContainerColor | The split container color of the SplitRadioButton when disabled and not selected. |
| disabledUnselectedControlColor | The radio control color when disabled and unselected. |