RadioButtonConstants
Kotlin
|Java
objectRadioButtonConstants
kotlin.Any | |
↳ | androidx.compose.material.RadioButtonConstants |
Constants used in RadioButton.
Summary
Public methods | |
---|---|
RadioButtonColors |
defaultColors(selectedColor: Color = MaterialTheme.colors.secondary, unselectedColor: Color = MaterialTheme.colors.onSurface.copy(alpha = 0.6f), disabledColor: Color = MaterialTheme.colors.onSurface.copy(alpha = ContentAlpha.disabled)) Creates a RadioButtonColors that will animate between the provided colors according to the Material specification. |
Public methods
defaultColors
@Composable fundefaultColors(
selectedColor: Color = MaterialTheme.colors.secondary,
unselectedColor: Color = MaterialTheme.colors.onSurface.copy(alpha = 0.6f),
disabledColor: Color = MaterialTheme.colors.onSurface.copy(alpha = ContentAlpha.disabled)
): RadioButtonColors
Deprecated.
Creates a RadioButtonColors that will animate between the provided colors according to the Material specification.
Parameters | |
---|---|
selectedColor: Color = MaterialTheme.colors.secondary | the color to use for the RadioButton when selected and enabled. |
unselectedColor: Color = MaterialTheme.colors.onSurface.copy(alpha = 0.6f) | the color to use for the RadioButton when unselected and enabled. |
disabledColor: Color = MaterialTheme.colors.onSurface.copy(alpha = ContentAlpha.disabled) | the color to use for the RadioButton when disabled. |
Return | |
---|---|
the resulting | Color used for the RadioButton |