AppDimensSdp

EN Utility object for handling SDP (Scalable Dp) dimensions.

PT Objeto utilitário para manipulação de dimensões SDP (Scalable Dp).

Functions

Link copied to clipboard
fun getDimensionInPx(context: Context, dpQualifier: DpQualifier, value: Int): Float

EN Gets the dimension in pixels from an SDP value.

Link copied to clipboard
fun getResourceId(context: Context, dpQualifier: DpQualifier, value: Int): Int

EN Gets the resource ID for an SDP value.