public abstract class CharacterStyle extends Object
MetricAffectingSpan
, but simple
ones may just implement UpdateAppearance
.Constructor and Description |
---|
CharacterStyle() |
Modifier and Type | Method and Description |
---|---|
CharacterStyle |
getUnderlying()
Returns "this" for most CharacterStyles, but for CharacterStyles
that were generated by
wrap(android.text.style.CharacterStyle) , returns the underlying
CharacterStyle. |
abstract void |
updateDrawState(TextPaint tp) |
static CharacterStyle |
wrap(CharacterStyle cs)
A given CharacterStyle can only applied to a single region of a given
Spanned.
|
public abstract void updateDrawState(TextPaint tp)
public static CharacterStyle wrap(CharacterStyle cs)
public CharacterStyle getUnderlying()
wrap(android.text.style.CharacterStyle)
, returns the underlying
CharacterStyle.