After scrolling in a ListView a couple of times i get this error and my app crashes. I'm loading the image into the ImageView like this on getView:
Image = (ImageView)row.findViewById(R.id.image_list);
Picasso Img= new Picasso.Builder(context).build();
Img.load(R.drawable.test)
.transform(new RoundedTransformation(6,0))
.fit()
.into(Image);
It happen even if I remove the transformation.
Please do not create a new Picasso
instance for every download.
Use the singleton.
Picasso.with(context).load(...)
Or create your own singleton and use that.
Ah, that fixed it. Thanks, you can remove the issue...
Also, don't create a new RoundTransformation
object for each request.
Make once and reuse it.
Most helpful comment
Please do not create a new
Picasso
instance for every download.Use the singleton.
Or create your own singleton and use that.