Methods Summary |
---|
public android.text.style.CharacterStyle | getUnderlying()Returns "this" for most CharacterStyles, but for CharacterStyles
that were generated by {@link #wrap}, returns the underlying
CharacterStyle.
return this;
|
public abstract void | updateDrawState(android.text.TextPaint tp)
|
public static android.text.style.CharacterStyle | wrap(android.text.style.CharacterStyle cs)A given CharacterStyle can only applied to a single region of a given
Spanned. If you need to attach the same CharacterStyle to multiple
regions, you can use this method to wrap it with a new object that
will have the same effect but be a distinct object so that it can
also be attached without conflict.
if (cs instanceof MetricAffectingSpan) {
return new MetricAffectingSpan.Passthrough((MetricAffectingSpan) cs);
} else {
return new Passthrough(cs);
}
|