ListItemShape
class ListItemShape
Represents the Shape of ListItem in different interaction states.
Summary
Public constructors |
|---|
ListItemShape(create an instance with arbitrary shapes. |
Public properties |
|
|---|---|
Shape |
the shape used when the ListItem is not enabled. |
Shape |
the shape used when the ListItem is not enabled and focused. |
Shape |
the shape used when the ListItem is enabled, focused and selected. |
Shape |
the shape used when the ListItem is enabled and focused. |
Shape |
the shape used when the ListItem is enabled, pressed and selected. |
Shape |
the shape used when the ListItem is enabled and pressed. |
Shape |
the shape used when the ListItem is enabled and selected. |
Shape |
the shape used when the ListItem is enabled. |
Public constructors
ListItemShape
ListItemShape(
shape: Shape,
focusedShape: Shape,
pressedShape: Shape,
selectedShape: Shape,
disabledShape: Shape,
focusedSelectedShape: Shape,
focusedDisabledShape: Shape,
pressedSelectedShape: Shape
)
create an instance with arbitrary shapes. See ListItemDefaults.shape for the default shapes used in a ListItem.
| Parameters | |
|---|---|
shape: Shape |
the shape used when the ListItem is enabled. |
focusedShape: Shape |
the shape used when the ListItem is enabled and focused. |
pressedShape: Shape |
the shape used when the ListItem is enabled and pressed. |
selectedShape: Shape |
the shape used when the ListItem is enabled and selected. |
disabledShape: Shape |
the shape used when the ListItem is not enabled. |
focusedSelectedShape: Shape |
the shape used when the ListItem is enabled, focused and selected. |
focusedDisabledShape: Shape |
the shape used when the ListItem is not enabled and focused. |
pressedSelectedShape: Shape |
the shape used when the ListItem is enabled, pressed and selected. |
Public functions
Public properties
disabledShape
val disabledShape: Shape
the shape used when the ListItem is not enabled.
focusedDisabledShape
val focusedDisabledShape: Shape
the shape used when the ListItem is not enabled and focused.
focusedSelectedShape
val focusedSelectedShape: Shape
the shape used when the ListItem is enabled, focused and selected.
focusedShape
val focusedShape: Shape
the shape used when the ListItem is enabled and focused.
pressedSelectedShape
val pressedSelectedShape: Shape
the shape used when the ListItem is enabled, pressed and selected.
pressedShape
val pressedShape: Shape
the shape used when the ListItem is enabled and pressed.
selectedShape
val selectedShape: Shape
the shape used when the ListItem is enabled and selected.