We hired a little genius, 17yrs old, still in school to help us out and give someone a little real world work experience. Turns out he's the one teaching us The!
The app we got him to build is online/offline. It consists of data collection pages that are three levels deep. So not huge. But the orientation is set to unspecified and we have two variants for each page, portrait and landscape. The app is for tablets and the customer required it to be mounted in trucks and because the truck's layout determines how the tablet can be mounted, one orientation just wouldn't do. Presently you can swap orientations as much as you like and your data is not affected at all.
I haven't had a deep dive yet but he's using the android view state objects to rebuild the B4XPages page stack when the orientation change restarts the main activity. It seems to work flawlessly. It does however make me feel like I'm getting a little too old and way too dumb for this game!
I'm happy to share his work as I'm sure the single orientation confines of b4xpages is a little disheartening for some since it's such a great framework to be sure.
Obviously having to hire him in the first place means I'm absolutely flat out and I won't see him for another week. That's right I see him once a week and he gets through in one day what would take me a week. But I will make it a personal mission to get some of his work into the forum. If I can strip away the superfluous stuff down to bare bones so even I can understand it, then it may be of some benefit to us all.
The app we got him to build is online/offline. It consists of data collection pages that are three levels deep. So not huge. But the orientation is set to unspecified and we have two variants for each page, portrait and landscape. The app is for tablets and the customer required it to be mounted in trucks and because the truck's layout determines how the tablet can be mounted, one orientation just wouldn't do. Presently you can swap orientations as much as you like and your data is not affected at all.
I haven't had a deep dive yet but he's using the android view state objects to rebuild the B4XPages page stack when the orientation change restarts the main activity. It seems to work flawlessly. It does however make me feel like I'm getting a little too old and way too dumb for this game!
I'm happy to share his work as I'm sure the single orientation confines of b4xpages is a little disheartening for some since it's such a great framework to be sure.
Obviously having to hire him in the first place means I'm absolutely flat out and I won't see him for another week. That's right I see him once a week and he gets through in one day what would take me a week. But I will make it a personal mission to get some of his work into the forum. If I can strip away the superfluous stuff down to bare bones so even I can understand it, then it may be of some benefit to us all.