dpToPx

fun Int.dpToPx(context: Context): Int

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