Most visited

Recently visited

Added in API level 1

MetricAffectingSpan

public abstract class MetricAffectingSpan
extends CharacterStyle implements UpdateLayout

java.lang.Object
   ↳ android.text.style.CharacterStyle
     ↳ android.text.style.MetricAffectingSpan
Known Direct Subclasses
Known Indirect Subclasses


The classes that affect character-level text formatting in a way that changes the width or height of characters extend this class.

Summary

Public constructors

MetricAffectingSpan()

Public methods

MetricAffectingSpan getUnderlying()

Returns "this" for most MetricAffectingSpans, but for MetricAffectingSpans that were generated by wrap(CharacterStyle), returns the underlying MetricAffectingSpan.

abstract void updateMeasureState(TextPaint p)

Inherited methods

From class android.text.style.CharacterStyle
From class java.lang.Object

Public constructors

MetricAffectingSpan

Added in API level 1
MetricAffectingSpan ()

Public methods

getUnderlying

Added in API level 1
MetricAffectingSpan getUnderlying ()

Returns "this" for most MetricAffectingSpans, but for MetricAffectingSpans that were generated by wrap(CharacterStyle), returns the underlying MetricAffectingSpan.

Returns
MetricAffectingSpan

updateMeasureState

Added in API level 1
void updateMeasureState (TextPaint p)

Parameters
p TextPaint

Hooray!