Problems with ListView

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

Problems with ListView

Postby timweicker » Wed Jun 10, 2009 8:10 pm

Hello!


I've got a simple problem with ListView. I'd like to have a list that looks like this one:

----------------------------------------
Apartment 1
Icon1 Icon2 Icon3 Price: xxx
----------------------------------------
Apartment 2
Icon1 Price: xxx
----------------------------------------
Apartment 3
Icon1 Icon2 Price: xxx
----------------------------------------

I've got all informations in an array of objects, which have the variables "name" (String, "Apartment 1 / 2 / 3"), "parking" (boolean, -> Icon 1 (if true display icon, if false don't) and other two variables like "parking".

I think it has sth. to do with ArrayAdapters, but I don't know how they work.
Does anyone know how I can "split" the text fiels of my list into several textviews? And how can I link them with the arrays?

Can someone help me?

Regards,
Tim
timweicker
Junior Developer
Junior Developer
 
Posts: 20
Joined: Wed Jun 10, 2009 7:55 pm

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: Google [Bot] and 5 guests