views:

10

answers:

0

Hi,

I want to create a table layout in android.

It should look a bit like the calendar on my HTC Desire with HTC Sense.

What I want is a 4 rows: 1: Small area with a specific color (color read from database, dynamic) 2: Text 3: Text 4: text

I have successfully created some tables out of a list view, by creating a list_item.xml where I specify my elements. In previous versions I did this only with text elements and could add a SimpleAdapter with Cursor data.

But I cannot use the SimpleAdapter to change the color of the first row?

So do I have to create a adapter for this? And if yes how? I saw tutorials about how to color a whole column, but I don´t know how to do the same thing for just one row (the first) of the column with colors read from the db?

Please help me.