NavigationDrawerItemScale


@ExperimentalTvMaterial3Api
class NavigationDrawerItemScale


Defines the scale for all TV Indication states of a NavigationDrawerItem

Summary

Public companion properties

NavigationDrawerItemScale

Signifies the absence of a ScaleIndication in NavigationDrawerItem

Public constructors

NavigationDrawerItemScale(
    scale: @FloatRange(from = 0.0) Float,
    focusedScale: @FloatRange(from = 0.0) Float,
    pressedScale: @FloatRange(from = 0.0) Float,
    selectedScale: @FloatRange(from = 0.0) Float,
    disabledScale: @FloatRange(from = 0.0) Float,
    focusedSelectedScale: @FloatRange(from = 0.0) Float,
    focusedDisabledScale: @FloatRange(from = 0.0) Float,
    pressedSelectedScale: @FloatRange(from = 0.0) Float
)

create an instance with arbitrary scale.

Public functions

open operator Boolean
equals(other: Any?)
open Int
open String

Public properties

Float

the scale used when the NavigationDrawerItem is not enabled

Float

the scale used when the NavigationDrawerItem is not enabled and focused

Float

the scale used when the NavigationDrawerItem is enabled and focused

Float

the scale used when the NavigationDrawerItem is enabled, focused and selected

Float

the scale used when the NavigationDrawerItem is enabled and pressed

Float

the scale used when the NavigationDrawerItem is enabled, pressed and selected

Float

the scale used when the NavigationDrawerItem is enabled

Float

the scale used when the NavigationDrawerItem is enabled and selected

Public companion properties

None

Added in 1.0.0-alpha10
val NoneNavigationDrawerItemScale

Signifies the absence of a ScaleIndication in NavigationDrawerItem

Public constructors

Added in 1.0.0-alpha10
NavigationDrawerItemScale(
    scale: @FloatRange(from = 0.0) Float,
    focusedScale: @FloatRange(from = 0.0) Float,
    pressedScale: @FloatRange(from = 0.0) Float,
    selectedScale: @FloatRange(from = 0.0) Float,
    disabledScale: @FloatRange(from = 0.0) Float,
    focusedSelectedScale: @FloatRange(from = 0.0) Float,
    focusedDisabledScale: @FloatRange(from = 0.0) Float,
    pressedSelectedScale: @FloatRange(from = 0.0) Float
)

create an instance with arbitrary scale. See NavigationDrawerItemDefaults.scale for the default scale used in a NavigationDrawerItem

Parameters
scale: @FloatRange(from = 0.0) Float

the scale used when the NavigationDrawerItem is enabled

focusedScale: @FloatRange(from = 0.0) Float

the scale used when the NavigationDrawerItem is enabled and focused

pressedScale: @FloatRange(from = 0.0) Float

the scale used when the NavigationDrawerItem is enabled and pressed

selectedScale: @FloatRange(from = 0.0) Float

the scale used when the NavigationDrawerItem is enabled and selected

disabledScale: @FloatRange(from = 0.0) Float

the scale used when the NavigationDrawerItem is not enabled

focusedSelectedScale: @FloatRange(from = 0.0) Float

the scale used when the NavigationDrawerItem is enabled, focused and selected

focusedDisabledScale: @FloatRange(from = 0.0) Float

the scale used when the NavigationDrawerItem is not enabled and focused

pressedSelectedScale: @FloatRange(from = 0.0) Float

the scale used when the NavigationDrawerItem 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

disabledScale

Added in 1.0.0-alpha10
val disabledScaleFloat

the scale used when the NavigationDrawerItem is not enabled

focusedDisabledScale

Added in 1.0.0-alpha10
val focusedDisabledScaleFloat

the scale used when the NavigationDrawerItem is not enabled and focused

focusedScale

Added in 1.0.0-alpha10
val focusedScaleFloat

the scale used when the NavigationDrawerItem is enabled and focused

focusedSelectedScale

Added in 1.0.0-alpha10
val focusedSelectedScaleFloat

the scale used when the NavigationDrawerItem is enabled, focused and selected

pressedScale

Added in 1.0.0-alpha10
val pressedScaleFloat

the scale used when the NavigationDrawerItem is enabled and pressed

pressedSelectedScale

Added in 1.0.0-alpha10
val pressedSelectedScaleFloat

the scale used when the NavigationDrawerItem is enabled, pressed and selected

scale

Added in 1.0.0-alpha10
val scaleFloat

the scale used when the NavigationDrawerItem is enabled

selectedScale

Added in 1.0.0-alpha10
val selectedScaleFloat

the scale used when the NavigationDrawerItem is enabled and selected