ResponsiveItemType

value class ResponsiveItemType


Represents the semantic type of an item in a ResponsiveTransformingLazyColumn.

This type is used to automatically calculate the correct top and bottom padding for the list according to the Wear OS Material3 Design guidelines.

Summary

Public functions

open String

Public companion properties

Button

val ButtonResponsiveItemType

An item that is a standard androidx.wear.compose.material3.Button.

Card

val CardResponsiveItemType

An item that is a Card.

Default

val DefaultResponsiveItemType

An item that does not trigger any specific responsive padding logic. The list will use the minimum content padding.

IconButton

val IconButtonResponsiveItemType

An item that is an androidx.wear.compose.material3.IconButton or androidx.wear.compose.material3.IconToggleButton.

These circular buttons receive reduced responsive padding (13%) to avoid being clipped by the screen edge while maintaining a balanced look.

Text

val TextResponsiveItemType

An item that contains a androidx.wear.compose.material3.Text composable.

Unlike Cards or Buttons which handle rounded corners gracefully, rectangular blocks of text can look awkward when clipped by the screen edge. This type applies specific responsive padding (13% top, 23% bottom) to ensure the text remains legible and visually pleasing at the start and end of the list.

TextButton

val TextButtonResponsiveItemType

An item that is a androidx.wear.compose.material3.TextButton or androidx.wear.compose.material3.TextToggleButton.

Like IconButton, these are circular components that require specific responsive padding (13%).

Public functions

toString

open fun toString(): String