Build 1.0_r1(from source)

android.text.style
Class ImageSpan

java.lang.Object
  extended by android.text.style.CharacterStyle
      extended by android.text.style.MetricAffectingSpan
          extended by android.text.style.ReplacementSpan
              extended by android.text.style.DynamicDrawableSpan
                  extended by android.text.style.ImageSpan
All Implemented Interfaces:
UpdateLayout

public class ImageSpan
extends DynamicDrawableSpan


Nested Class Summary
 
Nested classes/interfaces inherited from class android.text.style.MetricAffectingSpan
MetricAffectingSpan.Passthrough
 
Constructor Summary
ImageSpan(Bitmap b)
           
ImageSpan(Context context, int resourceId)
           
ImageSpan(Context context, Uri uri)
           
ImageSpan(Drawable d)
           
ImageSpan(Drawable d, String source)
           
 
Method Summary
 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
draw, getSize
 
Methods inherited from class android.text.style.ReplacementSpan
updateDrawState, updateMeasureState
 
Methods inherited from class android.text.style.MetricAffectingSpan
getUnderlying
 
Methods inherited from class android.text.style.CharacterStyle
wrap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageSpan

public ImageSpan(Bitmap b)

ImageSpan

public ImageSpan(Drawable d)

ImageSpan

public ImageSpan(Drawable d,
                 String source)

ImageSpan

public ImageSpan(Context context,
                 Uri uri)

ImageSpan

public ImageSpan(Context context,
                 int resourceId)
Method Detail

getDrawable

public Drawable getDrawable()
Description copied from class: DynamicDrawableSpan
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.

Specified by:
getDrawable in class DynamicDrawableSpan

getSource

public String getSource()
Returns the source string that was saved during construction.


Build 1.0_r1(from source)

Please submit a feedback, bug or feature