android.text.style.ImageSpan
Summary
Public Constructors
Public Methods
|
|
|
|
|
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) |
abstract |
|
|
|
|
void |
draw(Canvas canvas, CharSequence text, int start, int end, float x, int top, int y, int bottom, Paint paint) |
abstract |
|
|
|
|
int |
getSize(Paint paint, CharSequence text, int start, int end, Paint.FontMetricsInt fm) |
|
|
|
|
|
void |
updateDrawState(TextPaint ds) |
|
|
|
|
|
void |
updateMeasureState(TextPaint p) |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
Details
Public Constructors
public
ImageSpan(Context context, int resourceId)
Public Methods
public
Drawable
getDrawable()
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.
public
String
getSource()
Returns the source string that was saved during construction.