Android Question Fold phone & B4XPages display multiple pages?

tsteward

Well-Known Member
Licensed User
Longtime User
I am about to receive a pixel 9 fold.
Is it possible when unfolded that a b4xpages app can load say the b4xmainpage on the left side of the screen and when selecting something that opens another page that second page will open on the right side?

If so how would one go about it, what considerations need to be taken into account.
I have searched but can't find this specific case

Thank you
BTW Thanks Erel, B4A infact right back to B4PPC has changed my life.
 

Cableguy

Expert
Licensed User
Longtime User
The B4XPages are Panels upon the Main Activity...
The way they work, I don"t think you can do what you want...
What you can do, is to check the screen size and if the unfolded screen is in use, show an "extended" main page with a replica of the "second" page you want to show.
It will be trickier though.
Maybe EREL can make an update to accomodate extra content on foldables
 
Upvote 0

tsteward

Well-Known Member
Licensed User
Longtime User
I have created an example where I can open 2 activities, one on each side when unfolded but don't know if this is of any use in a b4xpages app.
Still looking into this....
 
Upvote 0

Cableguy

Expert
Licensed User
Longtime User
I have created an example where I can open 2 activities, one on each side when unfolded but don't know if this is of any use in a b4xpages app.
Still looking into this....
as I stated, B4XPages does NOT use more that the Main Activity, the pages are Panels that are stacked and shown when needed.
Of course, you can go the "old" way, working with activities, but you will have to manage the activities lifecycle yourself
 
Upvote 0

tsteward

Well-Known Member
Licensed User
Longtime User
as I stated, B4XPages does NOT use more that the Main Activity, the pages are Panels that are stacked and shown when needed.
Of course, you can go the "old" way, working with activities, but you will have to manage the activities lifecycle yourself
Thanks but way too far down the b4xpages route for that. I'd die before converting such a large app back again.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…