to top
Android APIs
public abstract class

ReplacementSpan

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

Summary

Public Constructors
ReplacementSpan()
Public Methods
abstract void draw(Canvas canvas, CharSequence text, int start, int end, float x, int top, int y, int bottom, Paint paint)
abstract int getSize(Paint paint, CharSequence text, int start, int end, Paint.FontMetricsInt fm)
void updateDrawState(TextPaint ds)
This method does nothing, since ReplacementSpans are drawn explicitly instead of affecting Paint properties.
void updateMeasureState(TextPaint p)
This method does nothing, since ReplacementSpans are measured explicitly instead of affecting Paint properties.
[Expand]
Inherited Methods
From class android.text.style.MetricAffectingSpan
From class android.text.style.CharacterStyle
From class java.lang.Object

Public Constructors

public ReplacementSpan ()

Since: API Level 1

Public Methods

public abstract void draw (Canvas canvas, CharSequence text, int start, int end, float x, int top, int y, int bottom, Paint paint)

Since: API Level 1

public abstract int getSize (Paint paint, CharSequence text, int start, int end, Paint.FontMetricsInt fm)

Since: API Level 1

public void updateDrawState (TextPaint ds)

Since: API Level 1

This method does nothing, since ReplacementSpans are drawn explicitly instead of affecting Paint properties.

public void updateMeasureState (TextPaint p)

Since: API Level 1

This method does nothing, since ReplacementSpans are measured explicitly instead of affecting Paint properties.