I'm using the method given in Android HTML ImageGetter as AsyncTask to load images into a Textview from an html source. This works great, and doesnt freeze the UI while downloading the images. The problem I'm having, is that when it gets the images, an draws them into the TextView, the TextView isnt resizing, so the images appear over the text already there, an in fact are truncated to the current size of the TextView (set with wrap-content) if there are many images.
I cant set the initial size of the TextView specifically, as I dont know in advance if there will be images, or how many, or what size. Any suggestions on how I can resize the TextView after the images have loaded?
The TextView is in a ListView handled by a custom adapter if that makes any difference.
Oh,and the reason I dont just use a WebView, is that as its in a custom row ListView, there can be up to 20 of the rows, and I was having weird problems with that many WebViews being handled at once.
Thanks