Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Picasso "Resize and centerCrop" or ImageView "centerCrop"?

I am currently optimizing my Android app, and was wondering whether it's faster to resize and center crop an image using Picasso, or to just load the image straight into an ImageView which has a set layout_width and layout_height, and a scaleType attribute that is "centerCrop".

like image 277
rodentry Avatar asked May 15 '14 17:05

rodentry


1 Answers

I'd just load the image straight into an ImageView and use scaleType attribute "centerCrop" in the layout without the intervention of Picasso, because in low specs devices you could see a little lag between the conversion of scaleType. If you have a placeholder assigned to the ImageView, that could be a problem.

like image 91
amilcar-sr Avatar answered Oct 03 '22 09:10

amilcar-sr