Android Question Issue with ListView color

Shay

Well-Known Member
Licensed User
Longtime User
Hi

I have the following code, very simple ListView
I have for loop for 2 items
first item second label is red
second item second label is green

if I run this code, I get green on 2 items, while debug is showing: red, green
if I run it step by step, then it is ok - first line is red, second is green

B4X:
If jobtook="1" Then
             ListView1.TwoLinesLayout.SecondLabel.TextColor = Colors.Green
             Log("green")
            Else
             ListView1.TwoLinesLayout.SecondLabel.TextColor = Colors.Red        
             Log("red")
            End If
 

Shay

Well-Known Member
Licensed User
Longtime User
so you mean all the boxes text can be either red or green?
if so how can I overcome it?
and why in step by step I can see different colors (also after code is done running, 1 box is red, and second is green)
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Upvote 0
Top