/**@class android.text.style.ImageSpan @extends android.text.style.DynamicDrawableSpan Span that replaces the text it's attached to with a {@link Drawable} that can be aligned with the bottom or with the baseline of the surrounding text. The drawable can be constructed from varied sources: <ul> <li>{@link Bitmap} - see {@link #ImageSpan(Context, Bitmap)} and {@link #ImageSpan(Context, Bitmap, int)} </li> <li>{@link Drawable} - see {@link #ImageSpan(Drawable, int)}</li> <li>resource id - see {@link #ImageSpan(Context, int, int)}</li> <li>{@link Uri} - see {@link #ImageSpan(Context, Uri, int)}</li> </ul> The default value for the vertical alignment is {@link android.text.style.DynamicDrawableSpan#ALIGN_BOTTOM} <p> For example, an <code>ImagedSpan</code> can be used like this: <pre> SpannableString string = new SpannableString("Bottom: span.\nBaseline: span."); // using the default alignment: ALIGN_BOTTOM string.setSpan(new ImageSpan(this, R.mipmap.ic_launcher), 7, 8, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); string.setSpan(new ImageSpan(this, R.mipmap.ic_launcher, DynamicDrawableSpan.ALIGN_BASELINE), 22, 23, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); </pre> <img src="{@docRoot}reference/android/images/text/style/imagespan.png" /> <figcaption>Text with <code>ImageSpan</code>s aligned bottom and baseline.</figcaption> */ var ImageSpan = { /** */ getDrawable : function( ) {}, /**Returns the source string that was saved during construction. @return {String} the source string that was saved during construction @see #ImageSpan(Drawable, String) @see #ImageSpan(Context, Uri) */ getSource : function( ) {}, };