Skip to content Skip to sidebar Skip to footer

Slow Load Of Local Images With Picasso?

I've been developing Android apps for six years now, and using a simple 'home-grown' image caching library for just as long. I recently started using a component that depends Picas

Solution 1:

You can disable fade animation to improve load speed

Picasso.with(getActivity()).load(getPixId).noFade().into(imageView);

If you load a lot of image, try to use resize for better memory performance:

Picasso.with(getActivity()).load(getPixId).resize('widthImageView', 'heightImageView').noFade().into(imageView);

If you use a listview, you can stop load image onScroll for improve performance:

Picasso.with(getActivity()).load(getPixId).resize('widthImageView', 'heightImageView').noFade().tag('a group tag').into(imageView);

@Override public void onScrollStateChanged(AbsListView view, int scrollState) { final Picasso picasso = Picasso.with(context); if (scrollState == SCROLL_STATE_IDLE || scrollState == SCROLL_STATE_TOUCH_SCROLL) { picasso.resumeTag(context); } else { picasso.pauseTag(context); } }

For other solution you can see this post Picasso Github

If none of these solutions is for you, try a different library. Here you can find the most famous image libraries with their pros and cons Stackoverflow Answer

Solution 2:

This is a late answer, but I was curious about the same question. Here's what I found from Jake himself. Hope this helps. LINKenter image description here

Post a Comment for "Slow Load Of Local Images With Picasso?"