For a panel containing different types of child views, I know I can conditionally select just the label views. Is there a way to change the text color of these labels? What I have below doesn't get the job done.
B4X:
For i=0 To pnlStats.NumberOfViews-1
If pnlStats.GetView(i) Is Label Then
If intMainColor>300 Then
pnlStats.GetView(i).TextColor=Colors.black
Else
pnlStats.GetView(i).TextColor=Colors.white
End If
End If
Next
Last edited: