Dp

@Serializable
value class Dp(val value: Double)

Represents a density-independent pixel value. Values will be scaled and converted into standard pixel values according to the device's density.

Constructors

Link copied to clipboard
constructor(value: Double)

Types

Link copied to clipboard
object Companion

Empty companion object used for extensions.

Properties

Link copied to clipboard

Functions

Link copied to clipboard

Convert device-agnostic density-independent pixel value into a device-specific density-independent pixel value.

Link copied to clipboard
open override fun toString(): String