asDpToPx

fun asDpToPx(context: Context): Padding

Interprets that the current values are expressed in density-independent pixels (dp) and converts them to pixels (px) according to the device screen density.

Return

This instance with the values already converted.

Parameters

context

Context.