to Dynamic Scaled Dp
EN Converts an Int (the base Dp value) into a dynamically scaled Dp. The logic tries to find a corresponding dimension resource in the 'res/values/' folder.
Constructs the resource name based on the value (this) and the qualifier (qualifier).
Tries to load the resource via dimensionResource.
If the resource is found (e.g., in
values-sw600dp/dimens.xml), that value is used.If the resource is not found, the original value is used as a Dp (the default Compose Int.dp).
PT Converte um Int (o valor base de Dp) em um Dp dinamicamente escalado. A lógica tenta encontrar um recurso de dimensão correspondente na pasta 'res/values/'.
Constrói o nome do recurso baseado no valor (this) e no qualificador (qualifier).
Tenta carregar o recurso via dimensionResource.
Se o recurso for encontrado (e.g., em
values-sw600dp/dimens.xml), esse valor é usado.Se o recurso não for encontrado, o valor original é usado como Dp (o Int.dp padrão do Compose).
Return
The Dp value loaded from the resource or the base Dp value.
Parameters
The screen qualifier used to construct the resource name (s, h, w).