Skip to content
This repository has been archived by the owner on Dec 1, 2017. It is now read-only.

UI mess while loading image with UniversalImageLoader #215

Open
sharebooks opened this issue Mar 11, 2015 · 4 comments
Open

UI mess while loading image with UniversalImageLoader #215

sharebooks opened this issue Mar 11, 2015 · 4 comments

Comments

@sharebooks
Copy link

I am trying to load photos thumbnails into TwoWayView with UniversalImageLoader. The issue happens if I have many photos to load such as over 500. When I scroll the screen from top to bottom, then bottom to top. After couple times, all items are gone, or there is a white spacing at the top.

@candyss9185
Copy link

Hi! I have been facing the same issue and I am trying to figure out why this happens. Have you been able to find a possible solution or the cause of the problem?

@sharebooks
Copy link
Author

I did some investigate for a while and I may find the root cause but I did not find a solution as I did not go very deep into the source code.

What I find is that the issue is related to the async-loading. The extra spaces were added to mLayoutStart (or did not removed properly when the item is removed) in TwoWayLayoutManager.java. When the mLayouutStart is not calculated correctly, the result is there are more extra space right before the first item.

Hope this is helpful.

@ishroid
Copy link

ishroid commented Mar 20, 2015

SOLVED
You may be right but i saw a answer on stackoverflow that work for me.

Try it by yourself

http://stackoverflow.com/a/29137921/1881611
On Mar 20, 2015 2:49 AM, "sharebooks" notifications@github.com wrote:

I did some investigate for a while and I may find the root cause but I did
not find a solution as I did not go very deep into the source code.

What I find is that the issue is related to the async-loading. The extra
spaces were added to mLayoutStart (or did not removed properly when the
item is removed) in TwoWayLayoutManager.java. When the mLayouutStart is not
calculated correctly, the result is there are more extra space right before
the first item.

Hope this is helpful.


Reply to this email directly or view it on GitHub
#215 (comment).

@candyss9185
Copy link

Thanks! I'll take a look at it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants