# ListItemShape

Artifact: [androidx.tv:tv-material](https://developer.android.com/jetpack/androidx/releases/tv) [View Source](https://cs.android.com/search?q=file:androidx/tv/material3/ListItemStyles.kt+class:androidx.tv.material3.ListItemShape) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/tv#1.0.0)


```
class ListItemShape
```

<br />

*** ** * ** ***

Represents the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape` of ListItem in different interaction states.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/tv/material3/ListItemShape#ListItemShape(androidx.compose.ui.graphics.Shape,androidx.compose.ui.graphics.Shape,androidx.compose.ui.graphics.Shape,androidx.compose.ui.graphics.Shape,androidx.compose.ui.graphics.Shape,androidx.compose.ui.graphics.Shape,androidx.compose.ui.graphics.Shape,androidx.compose.ui.graphics.Shape)( shape: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape, focusedShape: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape, pressedShape: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape, selectedShape: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape, disabledShape: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape, focusedSelectedShape: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape, focusedDisabledShape: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape, pressedSelectedShape: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape )` create an instance with arbitrary shapes. |

| ### Public functions |
|---|---|
| `open operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/tv/material3/ListItemShape#equals(kotlin.Any)(other: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?)` |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/tv/material3/ListItemShape#hashCode()()` |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/tv/material3/ListItemShape#toString()()` |

| ### Public properties |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape` | `https://developer.android.com/reference/kotlin/androidx/tv/material3/ListItemShape#disabledShape()` the shape used when the ListItem is not enabled. |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape` | `https://developer.android.com/reference/kotlin/androidx/tv/material3/ListItemShape#focusedDisabledShape()` the shape used when the ListItem is not enabled and focused. |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape` | `https://developer.android.com/reference/kotlin/androidx/tv/material3/ListItemShape#focusedSelectedShape()` the shape used when the ListItem is enabled, focused and selected. |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape` | `https://developer.android.com/reference/kotlin/androidx/tv/material3/ListItemShape#focusedShape()` the shape used when the ListItem is enabled and focused. |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape` | `https://developer.android.com/reference/kotlin/androidx/tv/material3/ListItemShape#pressedSelectedShape()` the shape used when the ListItem is enabled, pressed and selected. |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape` | `https://developer.android.com/reference/kotlin/androidx/tv/material3/ListItemShape#pressedShape()` the shape used when the ListItem is enabled and pressed. |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape` | `https://developer.android.com/reference/kotlin/androidx/tv/material3/ListItemShape#selectedShape()` the shape used when the ListItem is enabled and selected. |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape` | `https://developer.android.com/reference/kotlin/androidx/tv/material3/ListItemShape#shape()` the shape used when the ListItem is enabled. |

## Public constructors

### ListItemShape

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/tv#1.0.0)

```
ListItemShape(
    shape: Shape,
    focusedShape: Shape,
    pressedShape: Shape,
    selectedShape: Shape,
    disabledShape: Shape,
    focusedSelectedShape: Shape,
    focusedDisabledShape: Shape,
    pressedSelectedShape: Shape
)
```

create an instance with arbitrary shapes. See `https://developer.android.com/reference/kotlin/androidx/tv/material3/ListItemDefaults#shape(androidx.compose.ui.graphics.Shape,androidx.compose.ui.graphics.Shape,androidx.compose.ui.graphics.Shape,androidx.compose.ui.graphics.Shape,androidx.compose.ui.graphics.Shape,androidx.compose.ui.graphics.Shape,androidx.compose.ui.graphics.Shape,androidx.compose.ui.graphics.Shape)` for the default shapes used in a `https://developer.android.com/reference/kotlin/androidx/tv/material3/ListItem.composable#ListItem(kotlin.Boolean,kotlin.Function0,kotlin.Function0,androidx.compose.ui.Modifier,kotlin.Boolean,kotlin.Function0,kotlin.Function0,kotlin.Function0,kotlin.Function1,kotlin.Function0,androidx.compose.ui.unit.Dp,androidx.tv.material3.ListItemShape,androidx.tv.material3.ListItemColors,androidx.tv.material3.ListItemScale,androidx.tv.material3.ListItemBorder,androidx.tv.material3.ListItemGlow,androidx.compose.foundation.interaction.MutableInteractionSource)`.

| Parameters |
|---|---|
| `shape: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape` | the shape used when the ListItem is enabled. |
| `focusedShape: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape` | the shape used when the ListItem is enabled and focused. |
| `pressedShape: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape` | the shape used when the ListItem is enabled and pressed. |
| `selectedShape: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape` | the shape used when the ListItem is enabled and selected. |
| `disabledShape: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape` | the shape used when the ListItem is not enabled. |
| `focusedSelectedShape: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape` | the shape used when the ListItem is enabled, focused and selected. |
| `focusedDisabledShape: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape` | the shape used when the ListItem is not enabled and focused. |
| `pressedSelectedShape: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape` | the shape used when the ListItem is enabled, pressed and selected. |

## Public functions

### equals

```
open operator fun equals(other: Any?): Boolean
```

### hashCode

```
open fun hashCode(): Int
```

### toString

```
open fun toString(): String
```

## Public properties

### disabledShape

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/tv#1.0.0)

```
val disabledShape: Shape
```

the shape used when the ListItem is not enabled.

### focusedDisabledShape

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/tv#1.0.0)

```
val focusedDisabledShape: Shape
```

the shape used when the ListItem is not enabled and focused.

### focusedSelectedShape

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/tv#1.0.0)

```
val focusedSelectedShape: Shape
```

the shape used when the ListItem is enabled, focused and selected.

### focusedShape

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/tv#1.0.0)

```
val focusedShape: Shape
```

the shape used when the ListItem is enabled and focused.

### pressedSelectedShape

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/tv#1.0.0)

```
val pressedSelectedShape: Shape
```

the shape used when the ListItem is enabled, pressed and selected.

### pressedShape

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/tv#1.0.0)

```
val pressedShape: Shape
```

the shape used when the ListItem is enabled and pressed.

### selectedShape

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/tv#1.0.0)

```
val selectedShape: Shape
```

the shape used when the ListItem is enabled and selected.

### shape

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/tv#1.0.0)

```
val shape: Shape
```

the shape used when the ListItem is enabled.