Android Question How to iterates B4XMainPage Views

M.LAZ

Active Member
Licensed User
Longtime User
in activity we use this code
B4X:
For Each v As B4XView In Activity.GetAllViewsRecursive  ' B4XPages.MainPage.Root.GetAllViewsRecursive
        v.Left = v.Parent.Width - v.Left - v.Width
     Next
is B4XPages.MainPage.Root equivalent to Activity.GetAllViewsRecursive?
MainPage also include a customlistview
thanks
 
Last edited:

PaulMeuris

Active Member
Licensed User
In the attached zip-file you can find an example of how to use GetAllViewsRecursive and the B4Xpages.
In the B4XMainPage the Root and CustomListView1 variables are public so they can be used in the page2.
Happy coding!
 

Attachments

  • testenvironment28.zip
    13.3 KB · Views: 65
Upvote 1
Top