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?

S_i_l_e_n_t C_o_d_e_r
  • 2,179
  • 2
  • 7
  • 21
Ganesh S S
  • 483
  • 5
  • 7
  • 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