Android Question How to change a property to all views?

vecino

Well-Known Member
Licensed User
Longtime User
Hello, is it possible to loop through all the views of a activity to change, for example, the text color of all buttons?

Thanks and regards.
 

vecino

Well-Known Member
Licensed User
Longtime User
Hi, I have done so:
B4X:
For Each v As View In Activity.GetAllViewsRecursive
  If (v Is Button) Then     
    Dim b As Button = v 
    b.TextColor = Colors.ARGB(255,139,0,0)
  End If   
Next
Thanks and regards.
 
Upvote 0
Top