androidx.compose.material3

ListItemShapesSince 1.11Experimental

Class

No hand-written docs yet.

Represents the shapes of a list item in different states.

class ListItemShapes(
    shape: Shape,
    selectedShape: Shape,
    pressedShape: Shape,
    focusedShape: Shape,
    hoveredShape: Shape,
    draggedShape: Shape,
)

How to get one

Create it

Ready-made values and functions that return it

Used by

Parameters that take a ListItemShapes.

Properties

shape

val shape: Shape

selectedShape

val selectedShape: Shape

pressedShape

val pressedShape: Shape

focusedShape

val focusedShape: Shape

hoveredShape

val hoveredShape: Shape

draggedShape

val draggedShape: Shape

Functions

copy

fun copy(
    shape: Shape? = this.shape,
    selectedShape: Shape? = this.selectedShape,
    pressedShape: Shape? = this.pressedShape,
    focusedShape: Shape? = this.focusedShape,
    hoveredShape: Shape? = this.hoveredShape,
    draggedShape: Shape? = this.draggedShape,
): ListItemShapes

Returns a copy of this ListItemShapes, optionally overriding some of the values.

Library docs

Represents the shapes of a list item in different states.