Im playing with GetView and followed the exemple found in the documentation. I added 5 Labels, 1 EditText and 1 Button.
Running the following code will set the color of all the components to blue, even the EditText and Button.
But if I use this code only the labels will be changed to blue:
Is there a bug when using "Is Label" or am I missing somehting?
/J
Running the following code will set the color of all the components to blue, even the EditText and Button.
B4X:
For I = 0 To Activity.NumberOfViews - 1
If Activity.GetView(I) Is Label Then
Dim lbl As Label
lbl = Activity.GetView(I)
lbl.Color = Colors.Blue
End If
But if I use this code only the labels will be changed to blue:
B4X:
For I = 0 To Activity.NumberOfViews - 1
If Activity.GetView(I) Is Label Then
If Activity.GetView(I) Is EditText Then
Continue
End If
If Activity.GetView(I) Is Button Then
Continue
End If
Dim b As Label
b = Activity.GetView(I)
b.Color = Colors.Blue
End If
Next
Is there a bug when using "Is Label" or am I missing somehting?
/J