Android
android.text.style
public abstract class

android.text.style.DynamicDrawableSpan

java.lang.Object
android.text.style.CharacterStyle
android.text.style.MetricAffectingSpan UpdateLayout
android.text.style.ReplacementSpan
android.text.style.DynamicDrawableSpan
Known Direct Subclasses

Summary

Public Constructors

            DynamicDrawableSpan()

Public Methods

          void  draw(Canvas canvas, CharSequence text, int start, int end, float x, int top, int y, int bottom, Paint paint)
abstract          Drawable  getDrawable()
Your subclass must implement this method to provide the bitmap to be drawn.
          int  getSize(Paint paint, CharSequence text, int start, int end, Paint.FontMetricsInt fm)
Methods inherited from class android.text.style.ReplacementSpan
Methods inherited from class android.text.style.MetricAffectingSpan
Methods inherited from class android.text.style.CharacterStyle
Methods inherited from class java.lang.Object

Details

Public Constructors

public DynamicDrawableSpan()

Public Methods

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

public abstract Drawable getDrawable()

Your subclass must implement this method to provide the bitmap to be drawn. The dimensions of the bitmap must be the same from each call to the next.

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

Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:56