mathew-kurian/TextJustify-Android

Background downloading/rendering (?)

jsilva1987 opened this issue · 1 comments

Hey man, first off, great work.

Here's the deal: I was trying the DocumentView inside a Fragment that gets created from a ListView item, so basically is a Fragment with dynamic info. Now, some of that info are images that get downloaded via AsyncTask, and whenever an image is downloaded I update the ListView. Thing is, while the ListView is updating, I allow user interaction so that the user can tap on an already downloaded item and thus open the Fragment I mentioned at the beginning.

What happens next is that the DocumentView waits for all the images to be downloaded before displaying itself. I'm not sure how the text gets rendered, but from what I can tell this is what's happening. If I use a DocumentView on any other place it works flawlessly.

I hope all that rambling is understandable, if not just let me know.

I have the same issue, I want to use DocumentView in RecyclerView, but it takes time to load and after loading resize the item which is annoying for users