Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
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 ()

Added in 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)

Added in API level 1

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

Added in API level 1

public void updateDrawState ( TextPaint ds)

Added in API level 1

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

public void updateMeasureState ( TextPaint p)

Added in API level 1

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