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?
Asked
Active
Viewed 71 times
0

S_i_l_e_n_t C_o_d_e_r
- 403
- 2
- 7
- 21

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
-
1HTML has ImageGetter, which internally uses ImageSpan as far I checked. – Ganesh S S Nov 26 '21 at 11:33