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

selectedContainerColorContainer or background color when the radio button is selected
selectedContentColorColor of the content (e.g. label) when the radio button is selected
selectedSecondaryContentColorColor of the secondary content (e.g. secondary label) when the radio button is selected
selectedIconColorColor of the icon when the radio button is selected
selectedControlColorColor of the radio selection control when the radio button is selected
unselectedContainerColorContainer or background color when the radio button is unselected
unselectedContentColorColor of the content (e.g. label) when the radio button is unselected
unselectedSecondaryContentColorColor of the secondary content (e.g. secondary label) when the radio button is unselected
unselectedIconColorColor of the icon when the radio button is unselected
unselectedControlColorColor of the radio selection control when the radio button is unselected
disabledSelectedContainerColorContainer or background color when the radio button is disabled and selected
disabledSelectedContentColorColor of content (e.g. label) when the radio button is disabled and selected
disabledSelectedSecondaryContentColorColor of the secondary content like secondary label when the radio button is disabled and selected
disabledSelectedIconColorIcon color when the radio button is disabled and selected
disabledSelectedControlColorRadio selection control color when the radio button is disabled and selected
disabledUnselectedContainerColorContainer or background color when the radio button is disabled and unselected
disabledUnselectedContentColorColor of the content (e.g. label) when the radio button is disabled and unselected
disabledUnselectedSecondaryContentColorColor of the secondary content like secondary label when the radio button is disabled and unselected
disabledUnselectedIconColorIcon color when the radio button is disabled and unselected
disabledUnselectedControlColorRadio 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

selectedContainerColorContainer or background color when the radio button is selected
selectedContentColorColor of the content (e.g. label) when the radio button is selected
selectedSecondaryContentColorColor of the secondary content (e.g. secondary label) when the radio button is selected
selectedIconColorColor of the icon when the radio button is selected
selectedControlColorColor of the radio selection control when the radio button is selected
unselectedContainerColorContainer or background color when the radio button is unselected
unselectedContentColorColor of the content (e.g. label) when the radio button is unselected
unselectedSecondaryContentColorColor of the secondary content (e.g. secondary label) when the radio button is unselected
unselectedIconColorColor of the icon when the radio button is unselected
unselectedControlColorColor of the radio selection control when the radio button is unselected
disabledSelectedContainerColorContainer or background color when the radio button is disabled and selected
disabledSelectedContentColorColor of content (e.g. label) when the radio button is disabled and selected
disabledSelectedSecondaryContentColorColor of the secondary content like secondary label when the radio button is disabled and selected
disabledSelectedIconColorIcon color when the radio button is disabled and selected
disabledSelectedControlColorRadio selection control color when the radio button is disabled and selected
disabledUnselectedContainerColorContainer or background color when the radio button is disabled and unselected
disabledUnselectedContentColorColor of the content (e.g. label) when the radio button is disabled and unselected
disabledUnselectedSecondaryContentColorColor of the secondary content like secondary label when the radio button is disabled and unselected
disabledUnselectedIconColorIcon color when the radio button is disabled and unselected
disabledUnselectedControlColorRadio selection control color when the radio button is disabled and unselected