public static class AndroidEmoji.EmojiImageSpan
extends android.text.style.ReplacementSpan
Modifier and Type | Field and Description |
---|---|
static int |
ALIGN_BOTTOM
A constant indicating that the bottom of this span should be aligned
with the bottom of the surrounding text, i.e., at the same level as the
lowest descender in the text.
|
Constructor and Description |
---|
EmojiImageSpan(int codePoint,
float textSize) |
Modifier and Type | Method and Description |
---|---|
void |
draw(android.graphics.Canvas canvas,
java.lang.CharSequence text,
int start,
int end,
float x,
int top,
int y,
int bottom,
android.graphics.Paint paint) |
android.graphics.drawable.Drawable |
getDrawable()
Your subclass must implement this method to provide the bitmap
to be drawn.
|
int |
getSize(android.graphics.Paint paint,
java.lang.CharSequence text,
int start,
int end,
android.graphics.Paint.FontMetricsInt fm) |
public static final int ALIGN_BOTTOM
public android.graphics.drawable.Drawable getDrawable()
public int getSize(android.graphics.Paint paint, java.lang.CharSequence text, int start, int end, android.graphics.Paint.FontMetricsInt fm)
getSize
in class android.text.style.ReplacementSpan
public void draw(android.graphics.Canvas canvas, java.lang.CharSequence text, int start, int end, float x, int top, int y, int bottom, android.graphics.Paint paint)
draw
in class android.text.style.ReplacementSpan