Android
android.text.style
public class

android.text.style.ImageSpan

java.lang.Object
android.text.style.CharacterStyle
android.text.style.MetricAffectingSpan UpdateLayout
android.text.style.ReplacementSpan
android.text.style.DynamicDrawableSpan
android.text.style.ImageSpan

Summary

Public Constructors

            ImageSpan(Bitmap b)
            ImageSpan(Drawable d)
            ImageSpan(Drawable d, String source)
            ImageSpan(Context context, Uri uri)
            ImageSpan(Context context, int resourceId)

Public Methods

          Drawable  getDrawable()
Your subclass must implement this method to provide the bitmap to be drawn.
          String  getSource()
Returns the source string that was saved during construction.
Methods inherited from class android.text.style.DynamicDrawableSpan
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 ImageSpan(Bitmap b)

public ImageSpan(Drawable d)

public ImageSpan(Drawable d, String source)

public ImageSpan(Context context, Uri uri)

public ImageSpan(Context context, int resourceId)

Public Methods

public 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 String getSource()

Returns the source string that was saved during construction.
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:48