ImageSpan is cut off / incorrectly aligned
<p>I am implementing emoticons using the following code:</p>

<pre><code>            builder.setSpan(new ImageSpan(mContext, resId, ImageSpan.ALIGN_BASELINE),
                        start, end, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE );
</code></pre>

<p>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 &lt; length - 1, but the image is cut off (shifted up) if there is no text around it. how do I fix that?</p>

<p>Thanks a lot.</p>
