Access to other controls in an activity

Rusty

Well-Known Member
Licensed User
Longtime User
I have an activity with multiple buttons (or controls). It is quite easy to get/set attributes of a button that is clicked, however, when a button is clicked, I'd like to access the attributes of the other buttons. Is there a way to parse through an activity and its controls changing their color or other attributes?
 

derez

Expert
Licensed User
Longtime User
B4X:
For i = 0 To Activity.NumberOfViews - 1
    Dim v As View
    v = Activity.GetView(i)
    v.Visible = False
Next
 
Upvote 0
Top