Android - Listview with image via url, how to add one?

Asked

Viewed 669 times

0

I’ve done several searches on how to add an image to an android listview item, I’m doing everything via JSON and by Asynctask but I’m having a hard time adding this image, someone has an example or a tutorial link that is simple to implement?

  • 3

    If your problem is how to get the image see this reply. If your problem is another one be more specific. Posting your code may help you get an answer.

  • Yes exactly what I look for, all that I thought were gigantic examples and difficult to understand on my part since I am still starting in this mobile world, I will test this alternative at home and if I return here to warn. Thank you very much for your attention.

  • Ah just to let you know that your answer helped my problem a lot but I still missed some things like: Add a Bitmap in a Hashmap that until then everyone said it was not possible so I could define Arraylist and Hashmap to <String, Object> ai worked to then set in a Simpleadapter and then present the image in listview, but it was from its tip that I got, vlw.

  • Yes it was missing because and answer is only about how to search the image. I’m glad I could help.

1 answer

1

  • It really seems to be much simpler to use but as my application is now too big to make a change I will continue as I am doing but I already have another application to be made and I will use Picasso. Vlw hint.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.