Android Question Changing properties of views on the fly

kostefar

Active Member
Licensed User
Longtime User
Dear All,

If I know all names of all views in all layouts that I have, I can indeed manually change them as I want to - for instance the font color of all buttons.
This is alot of code though, rather than if I´d be able to just iterate through the views with a loop, like:
B4X:
for i = 0 to activity.numberofviews - 1
if activity.getview (i) = button then activity.getview(i).font.color = colors.blue
next

So, how would I do that?

Thanks!
 

kostefar

Active Member
Licensed User
Longtime User
Last edited:
Upvote 0
Top