Has anyone done any work on how to make a mobile app properly use split screen?
I have a mobile app (Livecode 10) that works well on iOS and Android. It uses "the effective working screenrect" to get the size of the screen and resizes appropriately. "the effective working screenrect" gets the dimensions of the screen that you can draw on while excluding the status bars, notches, etc. In order for the app to work properly in split screen mode, however, it appears that you cannot use the screenrect as that always reports the actual screen, not the part of the screen that your app has been assigned. What I read says that you should use "the rect of this stack" as that way you will get the part of the screen it should occupy rather than the entire screen.
The problem I see is that "the rect of this stack" does NOT account for the areas of the screen that are already in use. So when I use this, scroll bars, status bars, etc. all hide parts of my app because the dimensions of the app include screen areas that are not usable. I've tried using a combination of screenrect and stack rect where I check if the screenrect is excluding parts of the stack rect and adjust the rect of the app accordingly. But I haven't hit upon the right combinations for it to play nice with split screens.
If anyone either knows to get the stack rect to account for the unusable areas on the mobile screen or knows a different way to properly size your app to the space allocated to it so it plays nice with split screens, I'd appreciate hearing about it.
Jeff
split screen on mobile
LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
bamakojeff
- Posts: 35
- Joined: Tue Dec 06, 2022 6:53 pm
Return to “Getting Started with LiveCode - Experienced Developers”
Jump to
- LiveCode Community
- ↳ Announcements
- ↳ Developer Services Marketplace
- ↳ User Groups and Events
- ↳ SoCal LiveCode Group
- ↳ Greater Toronto Area LiveCode Users Group
- ↳ Off-Topic
- ↳ Made With LiveCode
- Getting Started With LiveCode
- ↳ Getting Started with LiveCode - Complete Beginners
- ↳ Getting Started with LiveCode - Experienced Developers
- ↳ Converting to LiveCode
- Developing With LiveCode
- ↳ Talking LiveCode
- ↳ Databases
- ↳ Games
- ↳ Internet
- ↳ Multimedia
- ↳ Software Engineering
- ↳ Version Control
- ↳ Feature Proposals
- ↳ Bug Triage
- Extending LiveCode
- ↳ Using Plugins for Customizing the LiveCode IDE
- ↳ Using Externals
- ↳ Making IDE Plugins
- ↳ Building Externals
- ↳ LiveCode Builder
- Platform Specific
- ↳ Windows
- ↳ Mac OS
- ↳ Linux
- ↳ iOS Deployment
- ↳ Android Deployment
- ↳ CGIs and the Server
- ↳ HTML5
- ↳ Raspberry Pi
- Academic Endeavors
- ↳ Teaching with LiveCode
- ↳ Research and Post Secondary
- ↳ LiveCode University
- ↳ Educational Outreach
- Livecode Open Source Archived Forum- closed to posting
- ↳ Engine Contributors
- ↳ IDE Contributors
- ↳ Documentation and Tutorials
- ↳ Brainstorms
- ↳ Community Projects
- LiveCode Hosting