Displaying Data and Images in ListView
-
07-03-2021 - |
Pergunta
I'm Developing an Application. I'm displaying Thumbnail Image and Corresponding data with the image in ListView the data and images both are downloaded and parsed through XML parsing For Displaying images I used this tutorial
Lazy load of images in ListView
But I'm not getting how to display the parsed data in ListView.
Thank you
Abhishek
Solução
This is what u should do..
After parsing the data create objects for each row in listview(i.e,use a Custom Class)
Iterate through all the objects
Add to listView Adapter
Use listview.notifyDataChanged() function everytime.
This should do the trick..;)
Outras dicas
By using the BaseAdapter
, its possible.Inflate a layout that have textview
and Image view in
Listview row.
Please look in below link for the tutorial. i am sure you will get to resolve you problem on your own