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:
UpdateAppearance, UpdateLayout

public class ImageSpan
extends DynamicDrawableSpan


Field Summary
 
Fields inherited from class android.text.style.DynamicDrawableSpan
ALIGN_BASELINE, ALIGN_BOTTOM, mVerticalAlignment
 
Constructor Summary
ImageSpan(Bitmap b)
           
ImageSpan(Bitmap b, int verticalAlignment)
           
ImageSpan(Context context, Bitmap b)
           
ImageSpan(Context context, Bitmap b, int verticalAlignment)
           
ImageSpan(Context context, int resourceId)
           
ImageSpan(Context context, int resourceId, int verticalAlignment)
           
ImageSpan(Context context, Uri uri)
           
ImageSpan(Context context, Uri uri, int verticalAlignment)
           
ImageSpan(Drawable d)
           
ImageSpan(Drawable d, int verticalAlignment)
           
ImageSpan(Drawable d, String source)
           
ImageSpan(Drawable d, String source, int verticalAlignment)
           
 
Method Summary
 Drawable getDrawable()
           
 String getSource()
           
 
Methods inherited from class android.text.style.DynamicDrawableSpan
draw, getSize, getVerticalAlignment
 
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(Bitmap b,
                 int verticalAlignment)

ImageSpan

public ImageSpan(Context context,
                 Bitmap b)

ImageSpan

public ImageSpan(Context context,
                 Bitmap b,
                 int verticalAlignment)

ImageSpan

public ImageSpan(Drawable d)

ImageSpan

public ImageSpan(Drawable d,
                 int verticalAlignment)

ImageSpan

public ImageSpan(Drawable d,
                 String source)

ImageSpan

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

ImageSpan

public ImageSpan(Context context,
                 Uri uri)

ImageSpan

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

ImageSpan

public ImageSpan(Context context,
                 int resourceId)

ImageSpan

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

getDrawable

public Drawable getDrawable()
Specified by:
getDrawable in class DynamicDrawableSpan

getSource

public String getSource()


Copyright © 2008-2012. All Rights Reserved.