how to resize image after load image from server

64 Views Asked by At

I want to resize image when image will be load from server url. I am using Picasso Library for load and show image. But image size is too large so my app going to slow. I want to solve this. I want to resize image but don't work. I was use this code:

Picasso.with(context)
                .load(dataReturn.getImage()).resize(720,720).centerCrop()
                .error(R.drawable.upload_image)
                .into(holder.img);

But I am fail to show image. When i use this code, there image not showing in Image view. load Error. What i can do now

0

There are 0 best solutions below