RadioButtonColors

class RadioButtonColors


Represents the different container and content colors used for RadioButton in various states, that are selected, unselected, enabled and disabled.

Summary

Public constructors

RadioButtonColors(
    selectedContainerColor: Color,
    selectedContentColor: Color,
    selectedSecondaryContentColor: Color,
    selectedIconColor: Color,
    selectedControlColor: Color,
    unselectedContainerColor: Color,
    unselectedContentColor: Color,
    unselectedSecondaryContentColor: Color,
    unselectedIconColor: Color,
    unselectedControlColor: Color,
    disabledSelectedContainerColor: Color,
    disabledSelectedContentColor: Color,
    disabledSelectedSecondaryContentColor: Color,
    disabledSelectedIconColor: Color,
    disabledSelectedControlColor: Color,
    disabledUnselectedContainerColor: Color,
    disabledUnselectedContentColor: Color,
    disabledUnselectedSecondaryContentColor: Color,
    disabledUnselectedIconColor: Color,
    disabledUnselectedControlColor: Color
)

RadioButtonColors constructor to be used with RadioButton

Public functions

RadioButtonColors
copy(
    selectedContainerColor: Color,
    selectedContentColor: Color,
    selectedSecondaryContentColor: Color,
    selectedIconColor: Color,
    selectedControlColor: Color,
    unselectedContainerColor: Color,
    unselectedContentColor: Color,
    unselectedSecondaryContentColor: Color,
    unselectedIconColor: Color,
    unselectedControlColor: Color,
    disabledSelectedContainerColor: Color,
    disabledSelectedContentColor: Color,
    disabledSelectedSecondaryContentColor: Color,
    disabledSelectedIconColor: Color,
    disabledSelectedControlColor: Color,
    disabledUnselectedContainerColor: Color,
    disabledUnselectedContentColor: Color,
    disabledUnselectedSecondaryContentColor: Color,
    disabledUnselectedIconColor: Color,
    disabledUnselectedControlColor: Color
)

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

open operator Boolean
equals(other: Any?)
open Int

Public properties

Color

Container or background color when the radio button is disabled and selected

Color

Color of content (e.g. label) when the radio button is disabled and selected

Color

Radio selection control color when the radio button is disabled and selected

Color

Icon color when the radio button is disabled and selected

Color

Color of the secondary content like secondary label when the radio button is disabled and selected

Color

Container or background color when the radio button is disabled and unselected

Color

Color of the content (e.g. label) when the radio button is disabled and unselected

Color

Radio selection control color when the radio button is disabled and unselected

Color

Icon color when the radio button is disabled and unselected

Color

Color of the secondary content like secondary label when the radio button is disabled and unselected

Color

Container or background color when the radio button is selected

Color

Color of the content (e.g. label) when the radio button is selected

Color

Color of the radio selection control when the radio button is selected

Color

Color of the icon when the radio button is selected

Color

Color of the secondary content (e.g. secondary label) when the radio button is selected

Color

Container or background color when the radio button is unselected

Color

Color of the content (e.g. label) when the radio button is unselected

Color

Color of the radio selection control when the radio button is unselected

Color

Color of the icon when the radio button is unselected

Color

Color of the secondary content (e.g. secondary label) when the radio button is unselected

Public constructors

RadioButtonColors

Added in 1.5.0
RadioButtonColors(
    selectedContainerColor: Color,
    selectedContentColor: Color,
    selectedSecondaryContentColor: Color,
    selectedIconColor: Color,
    selectedControlColor: Color,
    unselectedContainerColor: Color,
    unselectedContentColor: Color,
    unselectedSecondaryContentColor: Color,
    unselectedIconColor: Color,
    unselectedControlColor: Color,
    disabledSelectedContainerColor: Color,
    disabledSelectedContentColor: Color,
    disabledSelectedSecondaryContentColor: Color,
    disabledSelectedIconColor: Color,
    disabledSelectedControlColor: Color,
    disabledUnselectedContainerColor: Color,
    disabledUnselectedContentColor: Color,
    disabledUnselectedSecondaryContentColor: Color,
    disabledUnselectedIconColor: Color,
    disabledUnselectedControlColor: Color
)

RadioButtonColors constructor to be used with RadioButton

Parameters
selectedContainerColor: Color

Container or background color when the radio button is selected

selectedContentColor: Color

Color of the content (e.g. label) when the radio button is selected

selectedSecondaryContentColor: Color

Color of the secondary content (e.g. secondary label) when the radio button is selected

selectedIconColor: Color

Color of the icon when the radio button is selected

selectedControlColor: Color

Color of the radio selection control when the radio button is selected

unselectedContainerColor: Color

Container or background color when the radio button is unselected

unselectedContentColor: Color

Color of the content (e.g. label) when the radio button is unselected

unselectedSecondaryContentColor: Color

Color of the secondary content (e.g. secondary label) when the radio button is unselected

unselectedIconColor: Color

Color of the icon when the radio button is unselected

unselectedControlColor: Color

Color of the radio selection control when the radio button is unselected

disabledSelectedContainerColor: Color

Container or background color when the radio button is disabled and selected

disabledSelectedContentColor: Color

Color of content (e.g. label) when the radio button is disabled and selected

disabledSelectedSecondaryContentColor: Color

Color of the secondary content like secondary label when the radio button is disabled and selected

disabledSelectedIconColor: Color

Icon color when the radio button is disabled and selected

disabledSelectedControlColor: Color

Radio selection control color when the radio button is disabled and selected

disabledUnselectedContainerColor: Color

Container or background color when the radio button is disabled and unselected

disabledUnselectedContentColor: Color

Color of the content (e.g. label) when the radio button is disabled and unselected

disabledUnselectedSecondaryContentColor: Color

Color of the secondary content like secondary label when the radio button is disabled and unselected

disabledUnselectedIconColor: Color

Icon color when the radio button is disabled and unselected

disabledUnselectedControlColor: Color

Radio selection control color when the radio button is disabled and unselected

Public functions

copy

Added in 1.6.0
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: Color = this.selectedContainerColor

Container or background color when the radio button is selected

selectedContentColor: Color = this.selectedContentColor

Color of the content (e.g. label) when the radio button is selected

selectedSecondaryContentColor: Color = this.selectedSecondaryContentColor

Color of the secondary content (e.g. secondary label) when the radio button is selected

selectedIconColor: Color = this.selectedIconColor

Color of the icon when the radio button is selected

selectedControlColor: Color = this.selectedControlColor

Color of the radio selection control when the radio button is selected

unselectedContainerColor: Color = this.unselectedContainerColor

Container or background color when the radio button is unselected

unselectedContentColor: Color = this.unselectedContentColor

Color of the content (e.g. label) when the radio button is unselected

unselectedSecondaryContentColor: Color = this.unselectedSecondaryContentColor

Color of the secondary content (e.g. secondary label) when the radio button is unselected

unselectedIconColor: Color = this.unselectedIconColor

Color of the icon when the radio button is unselected

unselectedControlColor: Color = this.unselectedControlColor

Color of the radio selection control when the radio button is unselected

disabledSelectedContainerColor: Color = this.disabledSelectedContainerColor

Container or background color when the radio button is disabled and selected

disabledSelectedContentColor: Color = this.disabledSelectedContentColor

Color of content (e.g. label) when the radio button is disabled and selected

disabledSelectedSecondaryContentColor: Color = this.disabledSelectedSecondaryContentColor

Color of the secondary content like secondary label when the radio button is disabled and selected

disabledSelectedIconColor: Color = this.disabledSelectedIconColor

Icon color when the radio button is disabled and selected

disabledSelectedControlColor: Color = this.disabledSelectedControlColor

Radio selection control color when the radio button is disabled and selected

disabledUnselectedContainerColor: Color = this.disabledUnselectedContainerColor

Container or background color when the radio button is disabled and unselected

disabledUnselectedContentColor: Color = this.disabledUnselectedContentColor

Color of the content (e.g. label) when the radio button is disabled and unselected

disabledUnselectedSecondaryContentColor: Color = this.disabledUnselectedSecondaryContentColor

Color of the secondary content like secondary label when the radio button is disabled and unselected

disabledUnselectedIconColor: Color = this.disabledUnselectedIconColor

Icon color when the radio button is disabled and unselected

disabledUnselectedControlColor: Color = this.disabledUnselectedControlColor

Radio selection control color when the radio button is disabled and unselected

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

Public properties

disabledSelectedContainerColor

val disabledSelectedContainerColor: Color

Container or background color when the radio button is disabled and selected

disabledSelectedContentColor

val disabledSelectedContentColor: Color

Color of content (e.g. label) when the radio button is disabled and selected

disabledSelectedControlColor

val disabledSelectedControlColor: Color

Radio selection control color when the radio button is disabled and selected

disabledSelectedIconColor

val disabledSelectedIconColor: Color

Icon color when the radio button is disabled and selected

disabledSelectedSecondaryContentColor

val disabledSelectedSecondaryContentColor: Color

Color of the secondary content like secondary label when the radio button is disabled and selected

disabledUnselectedContainerColor

val disabledUnselectedContainerColor: Color

Container or background color when the radio button is disabled and unselected

disabledUnselectedContentColor

val disabledUnselectedContentColor: Color

Color of the content (e.g. label) when the radio button is disabled and unselected

disabledUnselectedControlColor

val disabledUnselectedControlColor: Color

Radio selection control color when the radio button is disabled and unselected

disabledUnselectedIconColor

val disabledUnselectedIconColor: Color

Icon color when the radio button is disabled and unselected

disabledUnselectedSecondaryContentColor

val disabledUnselectedSecondaryContentColor: Color

Color of the secondary content like secondary label when the radio button is disabled and unselected

selectedContainerColor

val selectedContainerColor: Color

Container or background color when the radio button is selected

selectedContentColor

val selectedContentColor: Color

Color of the content (e.g. label) when the radio button is selected

selectedControlColor

val selectedControlColor: Color

Color of the radio selection control when the radio button is selected

selectedIconColor

val selectedIconColor: Color

Color of the icon when the radio button is selected

selectedSecondaryContentColor

val selectedSecondaryContentColor: Color

Color of the secondary content (e.g. secondary label) when the radio button is selected

unselectedContainerColor

val unselectedContainerColor: Color

Container or background color when the radio button is unselected

unselectedContentColor

val unselectedContentColor: Color

Color of the content (e.g. label) when the radio button is unselected

unselectedControlColor

val unselectedControlColor: Color

Color of the radio selection control when the radio button is unselected

unselectedIconColor

val unselectedIconColor: Color

Color of the icon when the radio button is unselected

unselectedSecondaryContentColor

val unselectedSecondaryContentColor: Color

Color of the secondary content (e.g. secondary label) when the radio button is unselected