DensityUtils

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun dp2px(dpValue: Float): Float

Converting dp to px.

Link copied to clipboard
fun dp2sp(dpValue: Float): Float

Converting dp to sp.

Link copied to clipboard
fun px2dp(pxValue: Float): Float

Converting px to dp.

Link copied to clipboard
fun px2sp(pxValue: Float): Float

Converting px to sp.

Link copied to clipboard
fun sp2dp(spValue: Float): Float

Converting sp to dp.

Link copied to clipboard
fun sp2px(spValue: Float): Float

Converting sp to px.