ChipElevation


Represents the elevation used in a selectable chip in different states.

Note that this default implementation does not take into consideration the selectable state passed into its shadowElevation. If you wish to apply that state, use a different SelectableChipElevation.

Summary

Public constructors

ChipElevation(
    elevation: Dp,
    pressedElevation: Dp,
    focusedElevation: Dp,
    hoveredElevation: Dp,
    draggedElevation: Dp,
    disabledElevation: Dp
)
Cmn

Public functions

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

Public properties

Dp

the elevation used when the chip is not enabled

Cmn
Dp

the elevation used when the chip is dragged

Cmn
Dp

the elevation used when the chip is enabled.

Cmn
Dp

the elevation used when the chip is focused

Cmn
Dp

the elevation used when the chip is hovered

Cmn
Dp

the elevation used when the chip is pressed.

Cmn

Public constructors

ChipElevation

ChipElevation(
    elevation: Dp,
    pressedElevation: Dp,
    focusedElevation: Dp,
    hoveredElevation: Dp,
    draggedElevation: Dp,
    disabledElevation: Dp
)
Parameters
elevation: Dp

the elevation used when the chip is enabled.

pressedElevation: Dp

the elevation used when the chip is pressed.

focusedElevation: Dp

the elevation used when the chip is focused

hoveredElevation: Dp

the elevation used when the chip is hovered

draggedElevation: Dp

the elevation used when the chip is dragged

disabledElevation: Dp

the elevation used when the chip is not enabled

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

Public properties

disabledElevation

val disabledElevationDp

the elevation used when the chip is not enabled

draggedElevation

val draggedElevationDp

the elevation used when the chip is dragged

elevation

val elevationDp

the elevation used when the chip is enabled.

focusedElevation

val focusedElevationDp

the elevation used when the chip is focused

hoveredElevation

val hoveredElevationDp

the elevation used when the chip is hovered

pressedElevation

val pressedElevationDp

the elevation used when the chip is pressed.