Skip to content Skip to sidebar Skip to footer

Align Bitmap In Spannablestringbuilder

How can I align a bitmap to the text in a SpannableString? SpannableStringBuilder ssb = new SpannableStringBuilder(arr_messages.get(position)); String msg1 = ssb.toString(); for (i

Solution 1:

Try ...new ImageSpan(bitmapArray.get(i), ImageSpan.ALIGN_BASELINE)...!


Post a Comment for "Align Bitmap In Spannablestringbuilder"