public class ImageSpan extends DynamicDrawableSpan
ALIGN_BASELINE, ALIGN_BOTTOM, mVerticalAlignment
Constructor and Description |
---|
ImageSpan(Bitmap b)
Deprecated.
Use
ImageSpan(Context, Bitmap) instead. |
ImageSpan(Bitmap b,
int verticalAlignment)
Deprecated.
Use {@link #ImageSpan(Context, Bitmap, int) instead.
|
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) |
Modifier and Type | Method and Description |
---|---|
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.
|
draw, getSize, getVerticalAlignment
updateDrawState, updateMeasureState
getUnderlying
wrap
@Deprecated public ImageSpan(Bitmap b)
ImageSpan(Context, Bitmap)
instead.@Deprecated public ImageSpan(Bitmap b, int verticalAlignment)
public ImageSpan(Context context, Bitmap b, int verticalAlignment)
verticalAlignment
- one of DynamicDrawableSpan.ALIGN_BOTTOM
or
DynamicDrawableSpan.ALIGN_BASELINE
.public ImageSpan(Drawable d)
public ImageSpan(Drawable d, int verticalAlignment)
verticalAlignment
- one of DynamicDrawableSpan.ALIGN_BOTTOM
or
DynamicDrawableSpan.ALIGN_BASELINE
.public ImageSpan(Drawable d, String source, int verticalAlignment)
verticalAlignment
- one of DynamicDrawableSpan.ALIGN_BOTTOM
or
DynamicDrawableSpan.ALIGN_BASELINE
.public ImageSpan(Context context, Uri uri, int verticalAlignment)
verticalAlignment
- one of DynamicDrawableSpan.ALIGN_BOTTOM
or
DynamicDrawableSpan.ALIGN_BASELINE
.public ImageSpan(Context context, @DrawableRes int resourceId)
public ImageSpan(Context context, @DrawableRes int resourceId, int verticalAlignment)
verticalAlignment
- one of DynamicDrawableSpan.ALIGN_BOTTOM
or
DynamicDrawableSpan.ALIGN_BASELINE
.public Drawable getDrawable()
DynamicDrawableSpan
getDrawable
in class DynamicDrawableSpan
public String getSource()