getDimensionInPx

fun getDimensionInPx(context: Context, dpQualifier: DpQualifier, value: Int): Float

EN Gets the dimension in pixels from an SDP value.

PT Obtém a dimensão em pixels a partir de um valor SDP.

Return

The dimension in pixels, or 0f if not found.

Parameters

context

The application context.

dpQualifier

DpQualifier.

value

The SDP value (-330 to 600).