I have a ScrollView with more items (panel) ~ 1000. When I select one of them, her background must change to another color, and the one previously selected to return her back to normal (unselected). I used this code to do that:
Can this be done otherwise, faster?
Thank you!
B4X:
Sub PanelX_Click
Dim pnl As Panel
pnl = Sender
For Each vold As View In ScrollViewArticole.Panel.GetAllViewsRecursive
vold.Color = Colors.ARGB(255, 30 ,100,100)
Next
pnl.Color = Colors.ARGB(255,252,101,101)
......
Can this be done otherwise, faster?
Thank you!