Closed ghost closed 10 years ago
The text-size trait uses the setTextSize (float size) method, which according to the API docs takes a size in scaled pixels, that is :sp
setTextSize (float size)
:sp
However the trait applies to-dimension, which yields px, resulting in overall larger text than intended.
to-dimension
Proposed Fix: Use setTextSize (int unit, float size) directly, skipping the manual conversion.
setTextSize (int unit, float size)
OK, I've pushed a fix following your advise. Thank you!
The text-size trait uses the
setTextSize (float size)
method, which according to the API docs takes a size in scaled pixels, that is:sp
However the trait applies
to-dimension
, which yields px, resulting in overall larger text than intended.Proposed Fix: Use
setTextSize (int unit, float size)
directly, skipping the manual conversion.