public abstract class DynamicDrawableSpan extends ReplacementSpan
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGN_BASELINE |
static int |
ALIGN_BOTTOM |
protected int |
mVerticalAlignment |
| Modifier | Constructor and Description |
|---|---|
|
DynamicDrawableSpan() |
protected |
DynamicDrawableSpan(int verticalAlignment) |
| Modifier and Type | Method and Description |
|---|---|
void |
draw(Canvas canvas,
CharSequence text,
int start,
int end,
float x,
int top,
int y,
int bottom,
Paint paint) |
abstract Drawable |
getDrawable() |
int |
getSize(Paint paint,
CharSequence text,
int start,
int end,
Paint.FontMetricsInt fm) |
int |
getVerticalAlignment() |
updateDrawState, updateMeasureStategetUnderlyingwrappublic static final int ALIGN_BOTTOM
public static final int ALIGN_BASELINE
protected final int mVerticalAlignment
public DynamicDrawableSpan()
protected DynamicDrawableSpan(int verticalAlignment)
public int getVerticalAlignment()
public abstract Drawable getDrawable()
public int getSize(Paint paint, CharSequence text, int start, int end, Paint.FontMetricsInt fm)
getSize in class ReplacementSpanpublic void draw(Canvas canvas, CharSequence text, int start, int end, float x, int top, int y, int bottom, Paint paint)
draw in class ReplacementSpanCopyright © 2008-2013. All Rights Reserved.