public class

ImageSpan

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

Summary

[Expand]
Inherited Constants
From class android.text.style.DynamicDrawableSpan
[Expand]
Inherited Fields
From class android.text.style.DynamicDrawableSpan
Public Constructors
ImageSpan(Bitmap b)
ImageSpan(Bitmap b, int verticalAlignment)
ImageSpan(Drawable d)
ImageSpan(Drawable d, int verticalAlignment)
ImageSpan(Drawable d, String source)
ImageSpan(Drawable d, String source, int verticalAlignment)
ImageSpan(Context context, Uri uri)
ImageSpan(Context context, Uri uri, int verticalAlignment)
ImageSpan(Context context, int resourceId)
ImageSpan(Context context, int resourceId, int verticalAlignment)
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.
[Expand]
Inherited Methods
From class android.text.style.DynamicDrawableSpan
From class android.text.style.ReplacementSpan
From class android.text.style.MetricAffectingSpan
From class android.text.style.CharacterStyle
From class java.lang.Object

Public Constructors

public ImageSpan (Bitmap b)

public ImageSpan (Bitmap b, int verticalAlignment)

Parameters
verticalAlignment one of ALIGN_BOTTOM or ALIGN_BASELINE.

public ImageSpan (Drawable d)

public ImageSpan (Drawable d, int verticalAlignment)

Parameters
verticalAlignment one of ALIGN_BOTTOM or ALIGN_BASELINE.

public ImageSpan (Drawable d, String source)

public ImageSpan (Drawable d, String source, int verticalAlignment)

Parameters
verticalAlignment one of ALIGN_BOTTOM or ALIGN_BASELINE.

public ImageSpan (Context context, Uri uri)

public ImageSpan (Context context, Uri uri, int verticalAlignment)

Parameters
verticalAlignment one of ALIGN_BOTTOM or ALIGN_BASELINE.

public ImageSpan (Context context, int resourceId)

public ImageSpan (Context context, int resourceId, int verticalAlignment)

Parameters
verticalAlignment one of ALIGN_BOTTOM or ALIGN_BASELINE.

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.