Skip to content Skip to sidebar Skip to footer

How To Increase Speed In Picasso

I'm using Picasso to load images, scale and set to listview item. There is my code: Picasso.with(getActivity()).load(builder.toString()) .config(Bitmap.

Solution 1:

You can use Fresco for image loading..even facebook using same and for scaling you can use android:scaleType.its very usefull Read about Fresco http://frescolib.org/docs/index.html

Solution 2:

Use the Glide Library An image loading and caching library for Android focused on smooth scrolling.

https://github.com/bumptech/glide

Picasso is also a good for cashing or U can use LRU cache.

Solution 3:

You aren't seeing slowness. That Target will probably never be called.

Picasso only holds a WeakReference to a Target. You need to hold your own reference to that Target, or else it will be cleared and gc'd before it can be loaded into.

Post a Comment for "How To Increase Speed In Picasso"