Search code examples
androidtextviewspannablestring

Sometimes image spans are not visible when content covers multiple lines in textview


I have a textview and I am trying to draw image spans along with some text in it.

Sometimes some of the images are not visible when the content wraps to the next line.

Anything that I should keep in mind while adding spans to a textview ?

Any other details i should furnish , I can paste my code here.


Solution

  • So , there is a development I replaced the ' ' by a ':' and everything is working fine. So , the only question is what is the difference in using a ' ' or a ':' in this context.