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
| containerColor | the container color used when the ListItem is enabled. |
| contentColor | the content color used when the ListItem is enabled. |
| focusedContainerColor | the container color used when the ListItem is enabled and focused. |
| focusedContentColor | the content color used when the ListItem is enabled and focused. |
| pressedContainerColor | the container color used when the ListItem is enabled and pressed. |
| pressedContentColor | the content color used when the ListItem is enabled and pressed. |
| selectedContainerColor | the container color used when the ListItem is enabled and selected. |
| selectedContentColor | the content color used when the ListItem is enabled and selected. |
| disabledContainerColor | the container color used when the ListItem is not enabled. |
| disabledContentColor | the content color used when the ListItem is not enabled. |
| focusedSelectedContainerColor | the container color used when the ListItem is enabled, focused and selected. |
| focusedSelectedContentColor | the content color used when the ListItem is enabled, focused and selected. |
| pressedSelectedContainerColor | the container color used when the ListItem is enabled, pressed and selected. |
| pressedSelectedContentColor | the content color used when the ListItem is enabled, pressed and selected. |
