spToPx

fun Int.spToPx(context: Context): Int

This method converts sp unit to equivalent pixels, depending on device density.