Skip to content Skip to sidebar Skip to footer

Picasso Not Functioning Consistently

I have a gridview which has lots of tiles - something like several hundreds. All the data is gathered from a webservice. Each gridcell has two TextViews, a Button and one ImageView

Solution 1:

It seems that images you try to load are huge. So you may try to add resizing to Picasso methods chain:

Picasso.with(dvh.pic.getContext())
       .load(deal.getPhoto_link())
       .noFade()
       .resize(width, height) // <-- ImageView size in cell
       .into(dvh.pic);

It will reduce memory consumption. Also if your API allows you to obtain thumbnails instead of full version of images it will preferable to download them in grid view.


Post a Comment for "Picasso Not Functioning Consistently"