Source set: Android
public object RadioButtonDefaults
Contains the default values used by RadioButton.
Functions
colors
Source set: Android
public fun colors(
checkedColor: ColorProvider,
uncheckedColor: ColorProvider,
): RadioButtonColors
Creates a RadioButtonColors using ColorProviders.
Parameters
| checkedColor | the tint to apply to the radio button when it is checked. |
| uncheckedColor | the tint to apply to the radio button when it is not checked. |
Return
RadioButtonColors to tint the drawable of the RadioButton according to the checked state.
colors
Source set: Android
public fun colors(checkedColor: Color, uncheckedColor: Color): RadioButtonColors
Creates a RadioButtonColors using FixedColorProviders for the given colors.
Parameters
| checkedColor | the Color to use when the RadioButton is checked |
| uncheckedColor | the Color to use when the RadioButton is not checked |
Return
RadioButtonColors to tint the drawable of the RadioButton according to the checked state.
colors
Source set: Android
@Composable
public fun colors(): RadioButtonColors
Creates a default RadioButtonColors
Return
default RadioButtonColors.