Hello,
I am implementing emoticons using the following code:
builder.setSpan(new ImageSpan(mContext, resId, ImageSpan.ALIGN_BASELINE),
start, end, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE );
The result (builder) is set as text to a TextView. It works just fine if the span is surrounded by text, i.e. when the start > 0 and the end < length - 1, but the image is cut off (shifted up) if there is no text around it. how do I fix that?
Thanks a lot.