ListItemColors

class ListItemColors


Represents the container & content color Color of ListItem in different interaction states.

Summary

Public constructors

ListItemColors(
    containerColor: Color,
    contentColor: Color,
    focusedContainerColor: Color,
    focusedContentColor: Color,
    pressedContainerColor: Color,
    pressedContentColor: Color,
    selectedContainerColor: Color,
    selectedContentColor: Color,
    disabledContainerColor: Color,
    disabledContentColor: Color,
    focusedSelectedContainerColor: Color,
    focusedSelectedContentColor: Color,
    pressedSelectedContainerColor: Color,
    pressedSelectedContentColor: Color
)

create an instance with arbitrary colors.

Public functions

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

Public properties

Color

the container color used when the ListItem is enabled.

Color

the content color used when the ListItem is enabled.

Color

the container color used when the ListItem is not enabled.

Color

the content color used when the ListItem is not enabled.

Color

the container color used when the ListItem is enabled and focused.

Color

the content color used when the ListItem is enabled and focused.

Color

the container color used when the ListItem is enabled, focused and selected.

Color

the content color used when the ListItem is enabled, focused and selected.

Color

the container color used when the ListItem is enabled and pressed.

Color

the content color used when the ListItem is enabled and pressed.

Color

the container color used when the ListItem is enabled, pressed and selected.

Color

the content color used when the ListItem is enabled, pressed and selected.

Color

the container color used when the ListItem is enabled and selected.

Color

the content color used when the ListItem is enabled and selected.

Public constructors

ListItemColors

Added in 1.1.0
ListItemColors(
    containerColor: Color,
    contentColor: Color,
    focusedContainerColor: Color,
    focusedContentColor: Color,
    pressedContainerColor: Color,
    pressedContentColor: Color,
    selectedContainerColor: Color,
    selectedContentColor: Color,
    disabledContainerColor: Color,
    disabledContentColor: Color,
    focusedSelectedContainerColor: Color,
    focusedSelectedContentColor: Color,
    pressedSelectedContainerColor: Color,
    pressedSelectedContentColor: Color
)

create an instance with arbitrary colors. See ListItemDefaults.colors for the default colors used in a ListItem.

Parameters
containerColor: Color

the container color used when the ListItem is enabled.

contentColor: Color

the content color used when the ListItem is enabled.

focusedContainerColor: Color

the container color used when the ListItem is enabled and focused.

focusedContentColor: Color

the content color used when the ListItem is enabled and focused.

pressedContainerColor: Color

the container color used when the ListItem is enabled and pressed.

pressedContentColor: Color

the content color used when the ListItem is enabled and pressed.

selectedContainerColor: Color

the container color used when the ListItem is enabled and selected.

selectedContentColor: Color

the content color used when the ListItem is enabled and selected.

disabledContainerColor: Color

the container color used when the ListItem is not enabled.

disabledContentColor: Color

the content color used when the ListItem is not enabled.

focusedSelectedContainerColor: Color

the container color used when the ListItem is enabled, focused and selected.

focusedSelectedContentColor: Color

the content color used when the ListItem is enabled, focused and selected.

pressedSelectedContainerColor: Color

the container color used when the ListItem is enabled, pressed and selected.

pressedSelectedContentColor: Color

the content color used when the ListItem is enabled, pressed and selected.

Public functions

equals

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

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

containerColor

Added in 1.0.0
val containerColor: Color

the container color used when the ListItem is enabled.

contentColor

Added in 1.0.0
val contentColor: Color

the content color used when the ListItem is enabled.

disabledContainerColor

Added in 1.0.0
val disabledContainerColor: Color

the container color used when the ListItem is not enabled.

disabledContentColor

Added in 1.0.0
val disabledContentColor: Color

the content color used when the ListItem is not enabled.

focusedContainerColor

Added in 1.0.0
val focusedContainerColor: Color

the container color used when the ListItem is enabled and focused.

focusedContentColor

Added in 1.0.0
val focusedContentColor: Color

the content color used when the ListItem is enabled and focused.

focusedSelectedContainerColor

Added in 1.0.0
val focusedSelectedContainerColor: Color

the container color used when the ListItem is enabled, focused and selected.

focusedSelectedContentColor

Added in 1.0.0
val focusedSelectedContentColor: Color

the content color used when the ListItem is enabled, focused and selected.

pressedContainerColor

Added in 1.0.0
val pressedContainerColor: Color

the container color used when the ListItem is enabled and pressed.

pressedContentColor

Added in 1.0.0
val pressedContentColor: Color

the content color used when the ListItem is enabled and pressed.

pressedSelectedContainerColor

Added in 1.0.0
val pressedSelectedContainerColor: Color

the container color used when the ListItem is enabled, pressed and selected.

pressedSelectedContentColor

Added in 1.0.0
val pressedSelectedContentColor: Color

the content color used when the ListItem is enabled, pressed and selected.

selectedContainerColor

Added in 1.0.0
val selectedContainerColor: Color

the container color used when the ListItem is enabled and selected.

selectedContentColor

Added in 1.0.0
val selectedContentColor: Color

the content color used when the ListItem is enabled and selected.