Skip to content
Advertisement

Load multiple images with picasso – Android

I am trying to load multiple images from some urls using picasso library.

So far I have tried this code:

JavaScript

This code doesn’t work. When I run this code it doesn’t reach to any line within the Target interface. Someone have any ideas for why?

Advertisement

Answer

Maybe I’m missing something here, but I think into() accepts only an ImageView and an optional Callback. Can you do something like this:

JavaScript

But let’s try this: I’m guessing you’re either trying to add profile images to a bunch of existing views, or dynamically trying to create those views as you loop over all the profiles. Here’s the solution for both cases:

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement