Sub Class_Globals
Private Root As B4XView
Private xui As XUI
Private btn1, btn1b, btn2, btn2b, btn3, btn3b As Label
Private pnl1, pnl2, pnl3, pnlBar As B4XView
End Sub
Sub btn2_Click
pnl2.BringToFront
For Each v As Label In pnlBar.GetAllViewsRecursive
If v.name contains("1") Then v.textColor = Colors.Red Else v.TextColor = Colors.blue
Next