ListItemScale

Class
Android
class ListItemScale
constructor(
    @FloatRange(from = 0.0) val scale: Float,
    @FloatRange(from = 0.0) val focusedScale: Float,
    @FloatRange(from = 0.0) val pressedScale: Float,
    @FloatRange(from = 0.0) val selectedScale: Float,
    @FloatRange(from = 0.0) val disabledScale: Float,
    @FloatRange(from = 0.0) val focusedSelectedScale: Float,
    @FloatRange(from = 0.0) val focusedDisabledScale: Float,
    @FloatRange(from = 0.0) val pressedSelectedScale: Float,
)

Represents the scale Float of ListItem for different interaction states. Note: This scale must always be a non-negative float.

Parameters

scale the scale used when the ListItem is enabled.
focusedScale the scale used when the ListItem is enabled and focused.
pressedScale the scale used when the ListItem is enabled and pressed.
selectedScale the scale used when the ListItem is enabled and selected.
disabledScale the scale used when the ListItem is not enabled.
focusedSelectedScale the scale used when the ListItem is enabled, focused and selected.
focusedDisabledScale the scale used when the ListItem is not enabled and focused.
pressedSelectedScale the scale used when the ListItem is enabled, pressed and selected.

Companion Object

Properties

Android
val None =
        ListItemScale(
            scale = 1f,
            focusedScale = 1f,
            pressedScale = 1f,
            selectedScale = 1f,
            disabledScale = 1f,
            focusedSelectedScale = 1f,
            focusedDisabledScale = 1f,
            pressedSelectedScale = 1f,
        )

Signifies the absence of a ScaleIndication in ListItem component.