---
title: "SplitRadioButtonColors"
description: "Represents the different colors used in [SplitRadioButton] in different states."
type: "class"
---

<div class='type'>Class</div>


<a id='references'></a>

<div class='sourceset sourceset-android'>Android</div>


```kotlin
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

| | |
| --- | --- |
| selectedContainerColor | Container or background color when the `SplitRadioButton` is selected |
| selectedContentColor | Color of the content (e.g. label) when the `SplitRadioButton` is selected |
| selectedSecondaryContentColor | Color of the secondary content (e.g. secondary label) when the `SplitRadioButton` is selected |
| selectedSplitContainerColor | Split container color when the `SplitRadioButton` is selected |
| selectedControlColor | Selection control color when the `SplitRadioButton` is selected |
| unselectedContainerColor | Container or background color when the `SplitRadioButton` is unselected |
| unselectedContentColor | Color of the content (e.g. label) when the `SplitRadioButton` is unselected |
| unselectedSecondaryContentColor | Color of the secondary content (e.g. secondary label) when the `SplitRadioButton` is unselected |
| unselectedSplitContainerColor | Split container color when the `SplitRadioButton` is unselected |
| unselectedControlColor | Selection control color when the `SplitRadioButton` is unselected |
| disabledSelectedContainerColor | Container color when the `SplitRadioButton` is disabled and selected |
| disabledSelectedContentColor | Color of the content (e.g. label) when the `SplitRadioButton` is disabled and selected |
| disabledSelectedSecondaryContentColor | Color of the secondary content (e.g. secondary label) when the `SplitRadioButton` is disabled and selected |
| disabledSelectedSplitContainerColor | Split container color when the `SplitRadioButton` is disabled and selected |
| disabledSelectedControlColor | Selection control color when the `SplitRadioButton` is disabled and selected |
| disabledUnselectedContainerColor | Container color when the `SplitRadioButton` is unselected and disabled |
| disabledUnselectedContentColor | Color of the content (e.g. label) when the split radio button is unselected and disabled |
| disabledUnselectedSecondaryContentColor | Color of the secondary content (e.g. secondary label) when the `SplitRadioButton` is unselected and disabled |
| disabledUnselectedSplitContainerColor | Split container color when the `SplitRadioButton` is unselected and disabled |
| disabledUnselectedControlColor | Selection control color when the `SplitRadioButton` is unselected and disabled |



## Functions

```kotlin
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

| | |
| --- | --- |
| selectedContainerColor | Container or background color when the `SplitRadioButton` is selected |
| selectedContentColor | Color of the content (e.g. label) when the `SplitRadioButton` is selected |
| selectedSecondaryContentColor | Color of the secondary content (e.g. secondary label) when the `SplitRadioButton` is selected |
| selectedSplitContainerColor | Split container color when the `SplitRadioButton` is selected |
| selectedControlColor | Selection control color when the `SplitRadioButton` is selected |
| unselectedContainerColor | Container or background color when the `SplitRadioButton` is unselected |
| unselectedContentColor | Color of the content (e.g. label) when the `SplitRadioButton` is unselected |
| unselectedSecondaryContentColor | Color of the secondary content (e.g. secondary label) when the `SplitRadioButton` is unselected |
| unselectedSplitContainerColor | Split container color when the `SplitRadioButton` is unselected |
| unselectedControlColor | Selection control color when the `SplitRadioButton` is unselected |
| disabledSelectedContainerColor | Container color when the `SplitRadioButton` is disabled and selected |
| disabledSelectedContentColor | Color of the content (e.g. label) when the `SplitRadioButton` is disabled and selected |
| disabledSelectedSecondaryContentColor | Color of the secondary content (e.g. secondary label) when the `SplitRadioButton` is disabled and selected |
| disabledSelectedSplitContainerColor | Split container color when the `SplitRadioButton` is disabled and selected |
| disabledSelectedControlColor | Selection control color when the `SplitRadioButton` is disabled and selected |
| disabledUnselectedContainerColor | Container color when the `SplitRadioButton` is unselected and disabled |
| disabledUnselectedContentColor | Color of the content (e.g. label) when the split radio button is unselected and disabled |
| disabledUnselectedSecondaryContentColor | Color of the secondary content (e.g. secondary label) when the `SplitRadioButton` is unselected and disabled |
| disabledUnselectedSplitContainerColor | Split container color when the `SplitRadioButton` is unselected and disabled |
| disabledUnselectedControlColor | Selection control color when the `SplitRadioButton` is unselected and disabled |




