resolveQualifierDp

fun resolveQualifierDp(customDpMap: Map<DpQualifierEntry, Float>, smallestWidthDp: Float, currentScreenWidthDp: Float, currentScreenHeightDp: Float, initialBaseDp: Float): Float

EN Helper function that isolates the logic for searching and selecting the custom Dp value through Qualifiers (SW, H, W).

PT Função auxiliar que isola a lógica de busca e seleção do valor Dp customizado através dos Qualificadores (SW, H, W).

Return

The custom Dp value or the initial value (as Float).

Parameters

customDpMap

Map of Dp qualifiers.

smallestWidthDp

smallestScreenWidthDp from the current configuration.

currentScreenWidthDp

Screen width in Dp.

currentScreenHeightDp

Screen height in Dp.

initialBaseDp

Initial Dp value (as Float).