? CustomListView Label Height
Depending of the partial content of a line (in this case "E-") the Items Label Color of a ListView should be in another color.
I tried this code, but it didn't work:
Can anyone see why ?
The color was always gren, not gray
Depending of the partial content of a line (in this case "E-") the Items Label Color of a ListView should be in another color.
I tried this code, but it didn't work:
B4X:
For Each Line As String In File.ReadList(SDCardPath & "Test","Test.lst")
If Line.Startswith("E-") Then
ListView1.SingleLineLayout.Label.TextColor = Colors.Gray
ListView1.AddSingleLine(Line)
Else
ListView1.SingleLineLayout.Label.TextColor = Colors.Green
ListView1.AddSingleLine(Line)
End If
Next
Can anyone see why ?
The color was always gren, not gray
Last edited: