unitSizePerPx

fun unitSizePerPx(type: UnitType, resources: Resources): Float

EN Calculates the size of 1 unit (1.0f) in Pixels (PX) for a specific physical unit.

Note: The use of sp/dp in this context should be replaced by TypedValue.applyDimension for the View System.

PT Calcula o tamanho de 1 unidade (1.0f) em Pixels (PX) para uma unidade física específica.

OBS: O uso de sp/dp neste contexto deve ser substituído por TypedValue.applyDimension para View System.