Should i use an image loading library like Fresco?

247 Views Asked by At

I have a recycler view in my app with 300+ images in it and i am trying to improve it's performance. Should i use an image loading library for loading these images instead of just doing imageView.setImageResource(..)? Will that help?

3

There are 3 best solutions below

1
On BEST ANSWER

There are several libraries available that can load images into ImageViews smoothly.

Glide is a great library with many image loading features. https://bumptech.github.io/glide/

Picasso is another library with similar features. http://square.github.io/picasso/

I wouldn't say one is better than the other, it is really just preference. They both get the job done efficiently.

0
On

For improving Image Loading performance better use 3rd party Libraries like Glide, Picasso, Fresco

0
On

Once use imageview.setImageResource() or imageView.setUrl()

And one time use glide instead.

Run your emulator and monitor your device ram or cpu usage in these 2 situations.

I personally only use glide for the images I retrieve from the web.

For the Images from local db or local storage default methods like imageView.setUrl or etc. work just fine.