android.text.style
Class DynamicDrawableSpan
java.lang.Object
android.text.style.CharacterStyle
android.text.style.MetricAffectingSpan
android.text.style.ReplacementSpan
android.text.style.DynamicDrawableSpan
- All Implemented Interfaces:
- UpdateAppearance, UpdateLayout
- Direct Known Subclasses:
- ImageSpan
public abstract class DynamicDrawableSpan
- extends ReplacementSpan
Method Summary |
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()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ALIGN_BOTTOM
public static final int ALIGN_BOTTOM
- See Also:
- Constant Field Values
ALIGN_BASELINE
public static final int ALIGN_BASELINE
- See Also:
- Constant Field Values
mVerticalAlignment
protected final int mVerticalAlignment
DynamicDrawableSpan
public DynamicDrawableSpan()
DynamicDrawableSpan
protected DynamicDrawableSpan(int verticalAlignment)
getVerticalAlignment
public int getVerticalAlignment()
getDrawable
public abstract Drawable getDrawable()
getSize
public int getSize(Paint paint,
CharSequence text,
int start,
int end,
Paint.FontMetricsInt fm)
- Specified by:
getSize
in class ReplacementSpan
draw
public void draw(Canvas canvas,
CharSequence text,
int start,
int end,
float x,
int top,
int y,
int bottom,
Paint paint)
- Specified by:
draw
in class ReplacementSpan
Copyright © 2008-2012. All Rights Reserved.