When I run the following, I would expect the text color to be red on the first 9 items and green on all the following items in the listview. But they are all green. Thanks in advance for replies!
B4X:
'Listview Stuff
SkillList.Initialize("SkillList")
SkillList.SingleLineLayout.ItemHeight = 30dip
Label1 = SkillList.SingleLineLayout.Label
Label1.TextSize = 15
Label1.Padding = Array As Int (0dip, 0dip, 0dip, 0dip)
For i = 1 To 45
If i < 10 Then
Label1.TextColor = Colors.Red
Else
Label1.TextColor = Colors.Green
End If
SkillList.AddSingleLine(Skills(i))
Next