sp2dp

fun sp2dp(spValue: Float): Float

Converting sp to dp.

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

Return

a dp value.

Parameters

spValue

a sp value.