RadioButtonColors
Class
Android
public class RadioButtonColors(
public val selectedContainerColor: Color,
public val selectedContentColor: Color,
public val selectedSecondaryContentColor: Color,
public val selectedIconColor: Color,
public val selectedControlColor: Color,
public val unselectedContainerColor: Color,
public val unselectedContentColor: Color,
public val unselectedSecondaryContentColor: Color,
public val unselectedIconColor: Color,
public val unselectedControlColor: Color,
public val disabledSelectedContainerColor: Color,
public val disabledSelectedContentColor: Color,
public val disabledSelectedSecondaryContentColor: Color,
public val disabledSelectedIconColor: Color,
public val disabledSelectedControlColor: Color,
public val disabledUnselectedContainerColor: Color,
public val disabledUnselectedContentColor: Color,
public val disabledUnselectedSecondaryContentColor: Color,
public val disabledUnselectedIconColor: Color,
public val disabledUnselectedControlColor: Color,
)
Represents the different container and content colors used for RadioButton
in various states,
that are selected, unselected, enabled and disabled.
Parameters
selectedContainerColor | Container or background color when the radio button is selected |
selectedContentColor | Color of the content (e.g. label) when the radio button is selected |
selectedSecondaryContentColor | Color of the secondary content (e.g. secondary label) when the radio button is selected |
selectedIconColor | Color of the icon when the radio button is selected |
selectedControlColor | Color of the radio selection control when the radio button is selected |
unselectedContainerColor | Container or background color when the radio button is unselected |
unselectedContentColor | Color of the content (e.g. label) when the radio button is unselected |
unselectedSecondaryContentColor | Color of the secondary content (e.g. secondary label) when the radio button is unselected |
unselectedIconColor | Color of the icon when the radio button is unselected |
unselectedControlColor | Color of the radio selection control when the radio button is unselected |
disabledSelectedContainerColor | Container or background color when the radio button is disabled and selected |
disabledSelectedContentColor | Color of content (e.g. label) when the radio button is disabled and selected |
disabledSelectedSecondaryContentColor | Color of the secondary content like secondary label when the radio button is disabled and selected |
disabledSelectedIconColor | Icon color when the radio button is disabled and selected |
disabledSelectedControlColor | Radio selection control color when the radio button is disabled and selected |
disabledUnselectedContainerColor | Container or background color when the radio button is disabled and unselected |
disabledUnselectedContentColor | Color of the content (e.g. label) when the radio button is disabled and unselected |
disabledUnselectedSecondaryContentColor | Color of the secondary content like secondary label when the radio button is disabled and unselected |
disabledUnselectedIconColor | Icon color when the radio button is disabled and unselected |
disabledUnselectedControlColor | Radio selection control color when the radio button is disabled and unselected |
Functions
public fun copy(
selectedContainerColor: Color = this.selectedContainerColor,
selectedContentColor: Color = this.selectedContentColor,
selectedSecondaryContentColor: Color = this.selectedSecondaryContentColor,
selectedIconColor: Color = this.selectedIconColor,
selectedControlColor: Color = this.selectedControlColor,
unselectedContainerColor: Color = this.unselectedContainerColor,
unselectedContentColor: Color = this.unselectedContentColor,
unselectedSecondaryContentColor: Color = this.unselectedSecondaryContentColor,
unselectedIconColor: Color = this.unselectedIconColor,
unselectedControlColor: Color = this.unselectedControlColor,
disabledSelectedContainerColor: Color = this.disabledSelectedContainerColor,
disabledSelectedContentColor: Color = this.disabledSelectedContentColor,
disabledSelectedSecondaryContentColor: Color = this.disabledSelectedSecondaryContentColor,
disabledSelectedIconColor: Color = this.disabledSelectedIconColor,
disabledSelectedControlColor: Color = this.disabledSelectedControlColor,
disabledUnselectedContainerColor: Color = this.disabledUnselectedContainerColor,
disabledUnselectedContentColor: Color = this.disabledUnselectedContentColor,
disabledUnselectedSecondaryContentColor: Color =
this.disabledUnselectedSecondaryContentColor,
disabledUnselectedIconColor: Color = this.disabledUnselectedIconColor,
disabledUnselectedControlColor: Color = this.disabledUnselectedControlColor,
): RadioButtonColors
Returns a copy of this RadioButtonColors optionally overriding some of the values.
Parameters
selectedContainerColor | Container or background color when the radio button is selected |
selectedContentColor | Color of the content (e.g. label) when the radio button is selected |
selectedSecondaryContentColor | Color of the secondary content (e.g. secondary label) when the radio button is selected |
selectedIconColor | Color of the icon when the radio button is selected |
selectedControlColor | Color of the radio selection control when the radio button is selected |
unselectedContainerColor | Container or background color when the radio button is unselected |
unselectedContentColor | Color of the content (e.g. label) when the radio button is unselected |
unselectedSecondaryContentColor | Color of the secondary content (e.g. secondary label) when the radio button is unselected |
unselectedIconColor | Color of the icon when the radio button is unselected |
unselectedControlColor | Color of the radio selection control when the radio button is unselected |
disabledSelectedContainerColor | Container or background color when the radio button is disabled and selected |
disabledSelectedContentColor | Color of content (e.g. label) when the radio button is disabled and selected |
disabledSelectedSecondaryContentColor | Color of the secondary content like secondary label when the radio button is disabled and selected |
disabledSelectedIconColor | Icon color when the radio button is disabled and selected |
disabledSelectedControlColor | Radio selection control color when the radio button is disabled and selected |
disabledUnselectedContainerColor | Container or background color when the radio button is disabled and unselected |
disabledUnselectedContentColor | Color of the content (e.g. label) when the radio button is disabled and unselected |
disabledUnselectedSecondaryContentColor | Color of the secondary content like secondary label when the radio button is disabled and unselected |
disabledUnselectedIconColor | Icon color when the radio button is disabled and unselected |
disabledUnselectedControlColor | Radio selection control color when the radio button is disabled and unselected |