Skip to content

Most visited

Recently visited

navigation

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
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.