Android Question [B4XPages] Where to declare pages?

Sandman

Expert
Licensed User
Longtime User
I'm converting my app to B4XPages, and I'm wondering if there's a recommendation on where to declare the pages? My app is about a dozen pages, and the user can (sort of) freely jump back and forth between them.

At the moment I've declared all possible destination pages in each page. So if I have the page pageDraw, and the user can go to pageColors, the latter page is actually declared in pageDraw. (As a side-effect, this could mean that I declare pageColors in more than one page - not sure if this is a problem.)

This feels somewhat scattered to me, and not entirely correct. I have the feeling that it's smarter to declare all pages in B4XMainPage instead, to keep that code in one place.

Does the forum have an opinion on what's the better strategy?
 

pliroforikos

Active Member
Licensed User
And if you want to create something like this
B4XMainPage -> B4XPage1 -> B4XPage2 -> B4XPage3
How are you calling each page?
 
Upvote 0
Top