SP do Px Kotlin
TypedValue.applyDimension(
TypedValue.COMPLEX_UNIT_SP,
20F, // enter your SP value here
Resources.getSystem().displayMetrics
)
XeN0N
TypedValue.applyDimension(
TypedValue.COMPLEX_UNIT_SP,
20F, // enter your SP value here
Resources.getSystem().displayMetrics
)