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
scale | the scale used when the NavigationDrawerItem is enabled |
focusedScale | the scale used when the NavigationDrawerItem is enabled and focused |
pressedScale | the scale used when the NavigationDrawerItem is enabled and pressed |
selectedScale | the scale used when the NavigationDrawerItem is enabled and selected |
disabledScale | the scale used when the NavigationDrawerItem is not enabled |
focusedSelectedScale | the scale used when the NavigationDrawerItem is enabled, focused and selected |
focusedDisabledScale | the scale used when the NavigationDrawerItem is not enabled and focused |
pressedSelectedScale | the 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