DimenUtils

object DimenUtils

Functions

Link copied to clipboard
inline fun dpToPx(dp: Float): Int
inline fun dpToPx(dp: Int): Int

Converts DP to PX.

Link copied to clipboard
inline fun pxToDp(px: Int): Int

Converts PX to DP.

Properties

Link copied to clipboard

The default padding for cards (8 DP)

Link copied to clipboard

The default padding for items (16 DP)

Link copied to clipboard
val Float.dp: Int
val Int.dp: Int

Converts DP to PX