android.text.style
Class MetricAffectingSpan
java.lang.Object
android.text.style.CharacterStyle
android.text.style.MetricAffectingSpan
- All Implemented Interfaces:
- UpdateLayout
- Direct Known Subclasses:
- AbsoluteSizeSpan, MetricAffectingSpan.Passthrough, RelativeSizeSpan, ReplacementSpan, ScaleXSpan, StyleSpan, SubscriptSpan, SuperscriptSpan, TextAppearanceSpan, TypefaceSpan
public abstract class MetricAffectingSpan
- extends CharacterStyle
- implements UpdateLayout
The classes that affect character-level text formatting in a way that
changes the width or height of characters extend this class.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MetricAffectingSpan
public MetricAffectingSpan()
updateMeasureState
public abstract void updateMeasureState(TextPaint p)
getUnderlying
public MetricAffectingSpan getUnderlying()
- Returns "this" for most MetricAffectingSpans, but for
MetricAffectingSpans that were generated by
CharacterStyle.wrap(android.text.style.CharacterStyle),
returns the underlying MetricAffectingSpan.
- Overrides:
getUnderlying in class CharacterStyle
Please submit a feedback, bug or feature