NavigationDrawerItemScale

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

@FloatRange(from = 0.0) Float

the scale used when the NavigationDrawerItem is not enabled

@FloatRange(from = 0.0) Float

the scale used when the NavigationDrawerItem is not enabled and focused

@FloatRange(from = 0.0) Float

the scale used when the NavigationDrawerItem is enabled and focused

@FloatRange(from = 0.0) Float

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

@FloatRange(from = 0.0) Float

the scale used when the NavigationDrawerItem is enabled and pressed

@FloatRange(from = 0.0) Float

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

@FloatRange(from = 0.0) Float

the scale used when the NavigationDrawerItem is enabled

@FloatRange(from = 0.0) Float

the scale used when the NavigationDrawerItem is enabled and selected

Public companion properties

None

Added in 1.0.0
val NoneNavigationDrawerItemScale

Signifies the absence of a ScaleIndication in NavigationDrawerItem

Public constructors

Added in 1.0.0
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
val disabledScale: @FloatRange(from = 0.0) Float

the scale used when the NavigationDrawerItem is not enabled

focusedDisabledScale

Added in 1.0.0
val focusedDisabledScale: @FloatRange(from = 0.0) Float

the scale used when the NavigationDrawerItem is not enabled and focused

focusedScale

Added in 1.0.0
val focusedScale: @FloatRange(from = 0.0) Float

the scale used when the NavigationDrawerItem is enabled and focused

focusedSelectedScale

Added in 1.0.0
val focusedSelectedScale: @FloatRange(from = 0.0) Float

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

pressedScale

Added in 1.0.0
val pressedScale: @FloatRange(from = 0.0) Float

the scale used when the NavigationDrawerItem is enabled and pressed

pressedSelectedScale

Added in 1.0.0
val pressedSelectedScale: @FloatRange(from = 0.0) Float

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

scale

Added in 1.0.0
val scale: @FloatRange(from = 0.0) Float

the scale used when the NavigationDrawerItem is enabled

selectedScale

Added in 1.0.0
val selectedScale: @FloatRange(from = 0.0) Float

the scale used when the NavigationDrawerItem is enabled and selected