The iPad has significantly more space than an iPhone, which is why most apps have what is on a separate page on the iPhone on the same page as the main page.
My question is whether I can have two B4XPages open at the same time to arrange the RootPanel exactly as shown in the screenshot:
Intuitively I would say no since each page runs on a different class and the way B4XPageManager is built is to run on the top page class. But I cannot be a 100% sure as there is always something that someone has not understood completely...
Intuitively I would say no since each page runs on a different class and the way B4XPageManager is build is to run on the top page class. But I cannot be a 100% sure as there is always something that someone has not understood completely...
If I were you I would move the functionalities as subs in different classes and declare these classes and call the functionalities from a common page in iPad and from different pages in iPhone.
I think the best solution for this is to simply provide the second B4XPage as B4XView, which gives you flexibility because you have the complete code in a CustomView and can place it wherever you want—on mobile in a B4XPage and on the iPad on the MainPage.
I think the best solution for this is to simply provide the second B4XPage as B4XView, which gives you flexibility because you have the complete code in a CustomView and can place it wherever you want—on mobile in a B4XPage and on the iPad on the MainPage.
I don't understand this. B4XPages is a class. If you mean add another panel as B4XView then it make sense to me and it is similar to the concept of dashboard.
I had a similar problem some years ago for Android.
I wrote a program for tablets for a friend.
A short time after i wanted it also for phones and i wrote the program for phones.
Then, maintaining two programs with 90% the same code was a bad idea.
Therefore i merged both into one.
I put the different layouts on Panels, for most of them also different layouts for phone or tablet.
I displayed one Panel at the same time in portrait on a phone and two Panels at the same time side by side on the tablet in landscape orientation.
It needed to define the management of the Panels.