SP zu PX Kotlin

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