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?
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?