Skip to content Skip to sidebar Skip to footer

Listview And Images

I have two problems with ListView+images. I get the values for the list from an xml file which contains all necessary infos. I need to set up a Listview. Every row should contain

Solution 1:

A ListView item can have it's own custom layout. When you create your adapter for the ListView you can pass in the layout id to the Adapter constructor. See SimpleAdapter and ArrayAdapter. You will have to extend an Adapter and implement getView() to property set the image+text.

Here's a complete sample code Lazy load of images in ListView. You can reuse it.

Post a Comment for "Listview And Images"