0

I'm using multiple ImageSpan sets to a TextView. I'm facing performance lag when the ImageSpan count increases. Is there any solution to optimize the performance with ImageSpan?

Ganesh S S
  • 571
  • 5
  • 10
  • Not a good idea to use Span if you have too many images with text . have you tried setting text as HTML ? Something like [This](https://stackoverflow.com/questions/2865452/is-it-possible-to-display-inline-images-from-html-in-an-android-textview)? – ADM Nov 26 '21 at 11:19
  • 1
    HTML has ImageGetter, which internally uses ImageSpan as far I checked. – Ganesh S S Nov 26 '21 at 11:33

0 Answers0