Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question about reload images #1

Open
hoyin258 opened this issue May 28, 2013 · 3 comments
Open

Question about reload images #1

hoyin258 opened this issue May 28, 2013 · 3 comments

Comments

@hoyin258
Copy link

The image view wont reload the image if I scroll it very fast. It show no image there.
I am very new for the volley.

Thank you

@evancharlton
Copy link
Owner

Yeah, I'm pretty sure Folly uncovered a bug in NetworkImageView with image
recycling. I've reported it upstream but it hasn't been fixed yet.

Evan Charlton

On Mon, May 27, 2013 at 8:09 PM, hoyin258 [email protected] wrote:

The image view wont reload the image if I scroll it very fast. It show no
image there.
I am very new for the volley.

Thank you


Reply to this email directly or view it on GitHubhttps://github.com//issues/1
.

@hoyin258
Copy link
Author

Thank you.

Now I am using the traditional ImageView.

Instead of using

h.image.setImageUrl(getItem(position).getUrl(), mImageLoader);

Replace that to

    ImageLoader.ImageListener listener = ImageLoader.getImageListener(h.image, android.R.drawable.ic_menu_rotate, android.R.drawable.ic_delete);
    mImageLoader.get(image_url , listener);

@bashtian
Copy link

bashtian commented Oct 7, 2013

I think the problem is this line in ResultsAdapter

    h.image.setImageDrawable(null);

if you set it to

    h.image.setDefaultImageResId(R.drawable.default_image);

it works.

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

No branches or pull requests

3 participants