I’ve been trying to create a Recycler View full of Card Views. Currently, I’m using the Recycler View from this tutorial and loading it with 14 different images. The professional quality images range in size from 134K to 242K.(Down from 8MB – 18MB)
I know that the images may be too big but, I feel there must be some way to get better performance while scrolling. Can someone point me in the right direction?
Edit: The images will be stored on the device. There will probably never be more than 20 of them.
You can use
Picasso library or
Android Universal Image Loader
You don’t need any
AsyncTask.Theese 2 library handling image operations in background so you can keep scrolling smoothly. I am using
Picasso in my project right now. You can add error drawable , temporary placeholder default drawable , and its so simple automatically caching.
Just use one of them in
onBindViewHolder to bind any image to
Load the images in a separate thread (or AsyncTask).