NavigationDrawerItemScale

Class

Android
class NavigationDrawerItemScale(
    @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
)

Defines the scale for all TV Indication states of a NavigationDrawerItem

Parameters

scalethe scale used when the NavigationDrawerItem is enabled
focusedScalethe scale used when the NavigationDrawerItem is enabled and focused
pressedScalethe scale used when the NavigationDrawerItem is enabled and pressed
selectedScalethe scale used when the NavigationDrawerItem is enabled and selected
disabledScalethe scale used when the NavigationDrawerItem is not enabled
focusedSelectedScalethe scale used when the NavigationDrawerItem is enabled, focused and selected
focusedDisabledScalethe scale used when the NavigationDrawerItem is not enabled and focused
pressedSelectedScalethe scale used when the NavigationDrawerItem is enabled, pressed and selected

Companion Object

Properties

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

Signifies the absence of a ScaleIndication in NavigationDrawerItem