Dp.Companion



Summary

Public properties

Dp

A dimension used to represent a hairline drawing element.

Cmn
Dp

Infinite dp dimension.

Cmn
Dp

Constant that means unspecified Dp

Cmn

Extension properties

TwoWayConverter<DpAnimationVector1D>

A type converter that converts a Dp to a AnimationVector1D, and vice versa.

Cmn
Dp

Visibility threshold for Dp.

Cmn

Public properties

Hairline

val HairlineDp

A dimension used to represent a hairline drawing element. Hairline elements take up no space, but will draw a single pixel, independent of the device's resolution and density.

Infinity

val InfinityDp

Infinite dp dimension.

Unspecified

val UnspecifiedDp

Constant that means unspecified Dp

Extension properties

VectorConverter

val Dp.Companion.VectorConverterTwoWayConverter<DpAnimationVector1D>

A type converter that converts a Dp to a AnimationVector1D, and vice versa.

VisibilityThreshold

val Dp.Companion.VisibilityThresholdDp

Visibility threshold for Dp. This defines the amount of value change that is considered to be no longer visible. The animation system uses this to signal to some default spring animations to stop when the value is close enough to the target.