sp2px

fun sp2px(spValue: Float): Float

Converting sp to px.

The DisplayMetrics.scaledDensity is deprecate from Build.VERSION_CODES.UPSIDE_DOWN_CAKE, click scaledDensity to get more information.

Return

a px value.

Parameters

spValue

a sp value.