ListView's Bug?

doraneko

Member
Licensed User
Longtime User
I want to change text color in ListView.
-------------------------------------------------
Sub Globals
Dim Button1 As Button
Dim Button2 As Button
Dim Button3 As Button
Dim ListView1 As ListView
Dim ListLabel As Label
End Sub

Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("Test")
Initialize
End Sub

Sub Initialize
ListView1.Clear
ListLabel=ListView1.SingleLineLayout.Label
End Sub

Sub Button1_Click
Activity.Finish
End Sub

Sub Button2_Click
ListLabel.TextColor=Colors.Magenta
ListView1.AddSingleLine("In")
End Sub

Sub Button3_Click
ListLabel.TextColor=Colors.Green
ListView1.AddSingleLine("Out")
End Sub
-------------------------------------------------
When ListView1 is scrolled, why the text color can not keep own color ?
:confused:
 
Top