Different colors in listview

SpaceCow

Member
Licensed User
Longtime User
Hi,

I'm parsing a XML to a listview and i want some of the rows in a different color.

At the moment i am using this:

B4X:
   If Name = "curRun" Then
      If runClosed = "1" Then
         ListView1.TwoLinesLayout.Label.TextColor = Colors.Red
      Else
         ListView1.TwoLinesLayout.Label.TextColor = Colors.White
      End If
      ListView1.AddTwoLines(title, subTitle)
   End If

But now everything returns in red! In the logs i can see that only one row (the last) has to be red.

How comes?

Thanks!
 

eps

Expert
Licensed User
Longtime User
Upvote 0
Top