android - RecyclerView stutters when srolling only 14 images -


i've been trying create recycler view full of card views. currently, i'm using recycler view this tutorial , loading 14 different images. professional quality images range in size 134k 242k.(down 8mb - 18mb)

i know images may big but, feel there must way better performance while scrolling. can point me in right direction?

edit: images stored on device. there never more 20 of them.

you can use picasso library or android universal image loader

picasso

android-universal-image-loader

you don't need asynctask.theese 2 library handling image operations in background can keep scrolling smoothly. using picasso in project right now. can add error drawable , temporary placeholder default drawable , , simple automatically caching. use 1 of them in onbindviewholder bind image imageview


Comments

Popular posts from this blog

java - Suppress Jboss version details from HTTP error response -

gridview - Yii2 DataPorivider $totalSum for a column -

Sass watch command compiles .scss files before full sftp upload -