ListItemColors
class ListItemColors
Represents the container & content color Color of ListItem in different interaction states.
Summary
Public constructors |
|---|
ListItemColors(create an instance with arbitrary colors. |
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
Public properties
containerColor
val containerColor: Color
the container color used when the ListItem is enabled.
contentColor
val contentColor: Color
the content color used when the ListItem is enabled.
disabledContainerColor
val disabledContainerColor: Color
the container color used when the ListItem is not enabled.
disabledContentColor
val disabledContentColor: Color
the content color used when the ListItem is not enabled.
focusedContainerColor
val focusedContainerColor: Color
the container color used when the ListItem is enabled and focused.
focusedContentColor
val focusedContentColor: Color
the content color used when the ListItem is enabled and focused.
focusedSelectedContainerColor
val focusedSelectedContainerColor: Color
the container color used when the ListItem is enabled, focused and selected.
focusedSelectedContentColor
val focusedSelectedContentColor: Color
the content color used when the ListItem is enabled, focused and selected.
pressedContainerColor
val pressedContainerColor: Color
the container color used when the ListItem is enabled and pressed.
pressedContentColor
val pressedContentColor: Color
the content color used when the ListItem is enabled and pressed.
pressedSelectedContainerColor
val pressedSelectedContainerColor: Color
the container color used when the ListItem is enabled, pressed and selected.
pressedSelectedContentColor
val pressedSelectedContentColor: Color
the content color used when the ListItem is enabled, pressed and selected.
selectedContainerColor
val selectedContainerColor: Color
the container color used when the ListItem is enabled and selected.
selectedContentColor
val selectedContentColor: Color
the content color used when the ListItem is enabled and selected.