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

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 containerColorColor

the container color used when the ListItem is enabled.

contentColor

Added in 1.0.0
val contentColorColor

the content color used when the ListItem is enabled.

disabledContainerColor

Added in 1.0.0
val disabledContainerColorColor

the container color used when the ListItem is not enabled.

disabledContentColor

Added in 1.0.0
val disabledContentColorColor

the content color used when the ListItem is not enabled.

focusedContainerColor

Added in 1.0.0
val focusedContainerColorColor

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

focusedContentColor

Added in 1.0.0
val focusedContentColorColor

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

focusedSelectedContainerColor

Added in 1.0.0
val focusedSelectedContainerColorColor

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

focusedSelectedContentColor

Added in 1.0.0
val focusedSelectedContentColorColor

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

pressedContainerColor

Added in 1.0.0
val pressedContainerColorColor

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

pressedContentColor

Added in 1.0.0
val pressedContentColorColor

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

pressedSelectedContainerColor

Added in 1.0.0
val pressedSelectedContainerColorColor

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

pressedSelectedContentColor

Added in 1.0.0
val pressedSelectedContentColorColor

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

selectedContainerColor

Added in 1.0.0
val selectedContainerColorColor

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

selectedContentColor

Added in 1.0.0
val selectedContentColorColor

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