public class CustomLetterSpacingSpan
extends android.text.style.MetricAffectingSpan
MetricAffectingSpan
that allows to set the letter spacing
on the selected text span.
The letter spacing is specified in pixels, which are converted to
ems at paint time; this span must therefore be applied after any
spans affecting font size.Constructor and Description |
---|
CustomLetterSpacingSpan(float letterSpacing) |
Modifier and Type | Method and Description |
---|---|
void |
updateDrawState(android.text.TextPaint paint) |
void |
updateMeasureState(android.text.TextPaint paint) |
public void updateDrawState(android.text.TextPaint paint)
updateDrawState
in class android.text.style.CharacterStyle
public void updateMeasureState(android.text.TextPaint paint)
updateMeasureState
in class android.text.style.MetricAffectingSpan