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

I am currently optimizing my Android app and wondering if it is faster to resize and center the cropping of the image using Picasso or just load the image directly into ImageView, which has a set of layout_width and layout_height and the attribute scaleType, which is "centerCrop".

+6
source share
1 answer

I would just upload the image directly to ImageView and use the scaleType attribute "centerCrop" in the layout without Picasso intervention, because on devices with low specification you could see a slight lag between the scaleType transform. If you have a placeholder assigned by ImageView, this can be a problem.

+2
source

Source: https://habr.com/ru/post/969348/


All Articles