mathew-kurian / TextJustify-Android

:page_facing_up: Android Text Full Jusiftication / Wrapping / Justify / Hyphenate - V2.0
https://github.com/bluejamesbond/TextJustify-Android/wiki
Apache License 2.0
1.86k stars 370 forks source link

Background downloading/rendering (?) #112

Open jsilva1987 opened 8 years ago

jsilva1987 commented 8 years ago

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.

mneckoee commented 8 years ago

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