SP à 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
)