toSpInt

fun toSpInt(resources: Resources): Int

EN Builds the dynamically adjusted Dp value and converts it to Scalable Pixels (SP) in Pixels (Int).

Return

The value in Pixels (PX) corresponding to SP, as an Int.

PT Constrói o valor Dp ajustado dinamicamente e o converte para Scaleable Pixels (SP) em Pixels (Int).

O valor em Pixels (PX) correspondente ao SP, como Int.

Parameters

resources

Os Resources do Context.