English | Site Directory

Android - An Open Handset Alliance Project

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(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.
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(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.
Build m5-rc15i - 10 Jun 2008 13:54