ListItemColors

Class

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

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

Parameters

containerColorthe container color used when the ListItem is enabled.
contentColorthe content color used when the ListItem is enabled.
focusedContainerColorthe container color used when the ListItem is enabled and focused.
focusedContentColorthe content color used when the ListItem is enabled and focused.
pressedContainerColorthe container color used when the ListItem is enabled and pressed.
pressedContentColorthe content color used when the ListItem is enabled and pressed.
selectedContainerColorthe container color used when the ListItem is enabled and selected.
selectedContentColorthe content color used when the ListItem is enabled and selected.
disabledContainerColorthe container color used when the ListItem is not enabled.
disabledContentColorthe content color used when the ListItem is not enabled.
focusedSelectedContainerColorthe container color used when the ListItem is enabled, focused and selected.
focusedSelectedContentColorthe content color used when the ListItem is enabled, focused and selected.
pressedSelectedContainerColorthe container color used when the ListItem is enabled, pressed and selected.
pressedSelectedContentColorthe content color used when the ListItem is enabled, pressed and selected.