SplitRadioButtonColors

Class

Android
public class SplitRadioButtonColors(
    public val selectedContainerColor: Color,
    public val selectedContentColor: Color,
    public val selectedSecondaryContentColor: Color,
    public val selectedSplitContainerColor: Color,
    public val selectedControlColor: Color,
    public val unselectedContainerColor: Color,
    public val unselectedContentColor: Color,
    public val unselectedSecondaryContentColor: Color,
    public val unselectedSplitContainerColor: Color,
    public val unselectedControlColor: Color,
    public val disabledSelectedContainerColor: Color,
    public val disabledSelectedContentColor: Color,
    public val disabledSelectedSecondaryContentColor: Color,
    public val disabledSelectedSplitContainerColor: Color,
    public val disabledSelectedControlColor: Color,
    public val disabledUnselectedContainerColor: Color,
    public val disabledUnselectedContentColor: Color,
    public val disabledUnselectedSecondaryContentColor: Color,
    public val disabledUnselectedSplitContainerColor: Color,
    public val disabledUnselectedControlColor: Color,
)

Represents the different colors used in SplitRadioButton in different states.

Parameters

selectedContainerColorContainer or background color when the SplitRadioButton is selected
selectedContentColorColor of the content (e.g. label) when the SplitRadioButton is selected
selectedSecondaryContentColorColor of the secondary content (e.g. secondary label) when the SplitRadioButton is selected
selectedSplitContainerColorSplit container color when the SplitRadioButton is selected
selectedControlColorSelection control color when the SplitRadioButton is selected
unselectedContainerColorContainer or background color when the SplitRadioButton is unselected
unselectedContentColorColor of the content (e.g. label) when the SplitRadioButton is unselected
unselectedSecondaryContentColorColor of the secondary content (e.g. secondary label) when the SplitRadioButton is unselected
unselectedSplitContainerColorSplit container color when the SplitRadioButton is unselected
unselectedControlColorSelection control color when the SplitRadioButton is unselected
disabledSelectedContainerColorContainer color when the SplitRadioButton is disabled and selected
disabledSelectedContentColorColor of the content (e.g. label) when the SplitRadioButton is disabled and selected
disabledSelectedSecondaryContentColorColor of the secondary content (e.g. secondary label) when the SplitRadioButton is disabled and selected
disabledSelectedSplitContainerColorSplit container color when the SplitRadioButton is disabled and selected
disabledSelectedControlColorSelection control color when the SplitRadioButton is disabled and selected
disabledUnselectedContainerColorContainer color when the SplitRadioButton is unselected and disabled
disabledUnselectedContentColorColor of the content (e.g. label) when the split radio button is unselected and disabled
disabledUnselectedSecondaryContentColorColor of the secondary content (e.g. secondary label) when the SplitRadioButton is unselected and disabled
disabledUnselectedSplitContainerColorSplit container color when the SplitRadioButton is unselected and disabled
disabledUnselectedControlColorSelection control color when the SplitRadioButton is unselected and disabled

Functions

public fun copy(
        selectedContainerColor: Color = this.selectedContainerColor,
        selectedContentColor: Color = this.selectedContentColor,
        selectedSecondaryContentColor: Color = this.selectedSecondaryContentColor,
        selectedSplitContainerColor: Color = this.selectedSplitContainerColor,
        selectedControlColor: Color = this.selectedControlColor,
        unselectedContainerColor: Color = this.unselectedContainerColor,
        unselectedContentColor: Color = this.unselectedContentColor,
        unselectedSecondaryContentColor: Color = this.unselectedSecondaryContentColor,
        unselectedSplitContainerColor: Color = this.unselectedSplitContainerColor,
        unselectedControlColor: Color = this.unselectedControlColor,
        disabledSelectedContainerColor: Color = this.disabledSelectedContainerColor,
        disabledSelectedContentColor: Color = this.disabledSelectedContentColor,
        disabledSelectedSecondaryContentColor: Color = this.disabledSelectedSecondaryContentColor,
        disabledSelectedSplitContainerColor: Color = this.disabledSelectedSplitContainerColor,
        disabledSelectedControlColor: Color = this.disabledSelectedControlColor,
        disabledUnselectedContainerColor: Color = this.disabledUnselectedContainerColor,
        disabledUnselectedContentColor: Color = this.disabledUnselectedContentColor,
        disabledUnselectedSecondaryContentColor: Color =
            this.disabledUnselectedSecondaryContentColor,
        disabledUnselectedSplitContainerColor: Color = this.disabledUnselectedSplitContainerColor,
        disabledUnselectedControlColor: Color = this.disabledUnselectedControlColor,
    ): SplitRadioButtonColors

Returns a copy of this SplitRadioButtonColors optionally overriding some of the values.

Parameters

selectedContainerColorContainer or background color when the SplitRadioButton is selected
selectedContentColorColor of the content (e.g. label) when the SplitRadioButton is selected
selectedSecondaryContentColorColor of the secondary content (e.g. secondary label) when the SplitRadioButton is selected
selectedSplitContainerColorSplit container color when the SplitRadioButton is selected
selectedControlColorSelection control color when the SplitRadioButton is selected
unselectedContainerColorContainer or background color when the SplitRadioButton is unselected
unselectedContentColorColor of the content (e.g. label) when the SplitRadioButton is unselected
unselectedSecondaryContentColorColor of the secondary content (e.g. secondary label) when the SplitRadioButton is unselected
unselectedSplitContainerColorSplit container color when the SplitRadioButton is unselected
unselectedControlColorSelection control color when the SplitRadioButton is unselected
disabledSelectedContainerColorContainer color when the SplitRadioButton is disabled and selected
disabledSelectedContentColorColor of the content (e.g. label) when the SplitRadioButton is disabled and selected
disabledSelectedSecondaryContentColorColor of the secondary content (e.g. secondary label) when the SplitRadioButton is disabled and selected
disabledSelectedSplitContainerColorSplit container color when the SplitRadioButton is disabled and selected
disabledSelectedControlColorSelection control color when the SplitRadioButton is disabled and selected
disabledUnselectedContainerColorContainer color when the SplitRadioButton is unselected and disabled
disabledUnselectedContentColorColor of the content (e.g. label) when the split radio button is unselected and disabled
disabledUnselectedSecondaryContentColorColor of the secondary content (e.g. secondary label) when the SplitRadioButton is unselected and disabled
disabledUnselectedSplitContainerColorSplit container color when the SplitRadioButton is unselected and disabled
disabledUnselectedControlColorSelection control color when the SplitRadioButton is unselected and disabled