to Dynamic Scaled Sp
EN The main logic for applying dynamic scaling. Tries to find a pre-calculated dimension resource (e.g., _16sdp) and uses it to get a scaled Sp value.
PT A lógica principal para aplicar o escalonamento dinâmico. Tenta encontrar um recurso de dimensão pré-calculado (ex: _16sdp) e o usa para obter um valor Sp escalado.
Receiver
The base Sp value (e.g., 16 for 16sp).
Return
The dynamically scaled TextUnit (Sp), or the base value if the resource is not found.
Parameters
qualifier
The qualifier used to determine the resource name (s, h, w).
font Scale
A boolean that indicates if the font scale is enabled or not