0

I'm developing an Android App and I need to display some data in a scrollable Listview. I will extract some strings from objects that I right now have stored in linked lists (until i come up with a better solution).

I want to display a view that looks almost like the contacts app. A list with a small picture to the left and a larger text to the right of the picture with a smaller text the bigger one. When I click on one of the items it should open a new activity.

How do I create the view? If I adds an object in the linked list it should appear in the list.

I have checked some sample code, but they all uses Arrayadapter and I dont understand how I am supposed to do.

kaiz.net
  • 1,984
  • 3
  • 23
  • 31
Krolken
  • 1
  • 1

2 Answers2

1

Check this article about Adapters: http://www.vogella.com/articles/AndroidListView/article.html If you want to add new objects in ListVew use:

adapter.notifyDataSetChenged();
Geralt_Encore
  • 3,721
  • 2
  • 31
  • 46
0

Check the libraries in this question, you have what you need there:

Lazy load of images in ListView

Community
  • 1
  • 1
Martin Revert
  • 3,242
  • 2
  • 30
  • 33