I want to have a photo in line with a paragraph of a text in my Android app. Like the photo below:
For that, I have used a SpannableString with an ImageSpan:
ImageSpan is = new ImageSpan(mContext, R.drawable.image);
SpannableString text = new SpannableString("This is a sample text");
text.setSpan(is, 0, 10, 0);
myTextView.setText(text);
However, the image is placed only on the first line of the paragraph.
How can I achieve this layout? And please note that later I would like to download the image in the background (lazy loading in a ListView).