Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Resize image when getting it from url and showing it in an imageview

Forgive me first, I can not speak English properly.

I used Piccaso library for Android to get an image and show that in an imageview in a baseadapter, but they are high volume images.

What is the best way to resize the image quickly?

like image 690
Mersad Nilchy Avatar asked Oct 17 '25 01:10

Mersad Nilchy


1 Answers

try following

Picasso  
    .with(context)
    .load(url)
    .resize(600, 200) // resizes the image to these dimensions (in pixel). does not respect aspect ratio
    .into(imageViewResize);
like image 74
Mehul Kabaria Avatar answered Oct 19 '25 15:10

Mehul Kabaria