fun Int.dpToPixel(context: Context): Int
Converts receiver (value in dp - device-independent pixels) to pixels, using context. |
|
fun Int.spToPixel(context: Context): Int
Converts receiver (value in sp - scaled device-independent pixels) to pixels, using context. |