May I ask before I begin please ?
I have built a mobile app in portrait mode. It can flip between 'right way up' and 'upside down' with no problems (clever LC !) BUT, for the moment, I have inhibited landscape mode.
Now I have the basics of my app running pretty bug-free I'm keen to try to get it to work in landscape too... so, to my question (before I begin and commit to the wrong idea from day 1)...
I guess there are (as always) many ways to handle this - it's simply understanding the 'norm' / best way (if there is one) / advantages / disadvantages of each method...
I have thought of 2 ways / methods :
Method 1
Use maths to physically re-jig the screen controls to suit the different aspect ratios
Advantage : each user control only exists once which I guess cuts down on both script size and overall app size. Debugging is simpler
Disadvantage : the math required at the outset to re-design the screen layout
Question : Does one simply undertake the resize math on detecting a screen orientation change (app becomes sluggish/noticeable slower on resize ?) or is this undertaken some other way / some other time ?
Method 2
Create two cards (one portrait and one landscape) for each app 'page' / screen view and display the correct card for the current orientation
Advantage : really simple to check / design. No math required meaning it's not necessary to deploy and try on your mobile device each time one THINKS the layout may be correct
Disadvantage : overhead. Basically controls / cards are duplicated - increasing app size. What to do about control specific scripts ? - duplicate them with each duplicated control OR move them to card level scripts and call them as required ?
Method 3
Some other method I've not thought of ? ? ?
I guess some of the decision will be based upon the number of controls per card. In my case between 20 and 100. And, maybe, the 'type' of controls - e.g. : 3 of the 6 cards I have use 1 or more datagrids.
Would anyone who's used to doing this kind of stuff give me some 'starters-for-ten'-advice/thoughts/pitfalls-to-beware-of/things-to-consider-before-starting please ?
AS always, thanks for sharing. Much appreciated.
Building for different orientations
Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!
Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller
Return to “Getting Started with LiveCode - Complete Beginners”
Jump to
- LiveCode Community
- ↳ Announcements
- ↳ Developer Services Marketplace
- ↳ User Groups and Events
- ↳ SoCal LiveCode Group
- ↳ Greater Toronto Area LiveCode Users Group
- ↳ Off-Topic
- Getting Started With LiveCode
- ↳ Getting Started with LiveCode - Complete Beginners
- ↳ Getting Started with LiveCode - Experienced Developers
- ↳ Converting to LiveCode
- ↳ App Building Course
- ↳ Simple Messages
- ↳ Calculator
- ↳ Notes
- ↳ Clock
- ↳ Web Browser
- ↳ Weather
- ↳ Compass
- ↳ Photos
- Developing With LiveCode
- ↳ Talking LiveCode
- ↳ Databases
- ↳ Games
- ↳ Internet
- ↳ Multimedia
- ↳ Software Engineering
- ↳ Version Control
- 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
- ↳ Feature Proposals
- ↳ Bug Triage
- ↳ Engine Contributors
- ↳ IDE Contributors
- ↳ Documentation and Tutorials
- ↳ Brainstorms
- ↳ Community Projects
- ↳ rIDE
- Third Party Extension Support
- ↳ Marketing Your Products
- ↳ Animation Engine
- ↳ chartsEngine
- ↳ MobGUI
- ↳ lcTaskList
- ↳ SQL Yoga
- ↳ MergEXT
- ↳ Data Grid Helper
- ↳ idea2app and Coding School
- ↳ Admin Archive
- LiveCode Hosting
- Forum Archives
- ↳ Archived: Third Party Extension Support
- ↳ rTree
- ↳ rGrid
- ↳ Data Tree
- ↳ Archived: LiveCode Open Source
- ↳ LiveCode Global Jam
- ↳ Testing Support
- ↳ Archived: Academic Endeavors
- ↳ September Academy
- ↳ Summer School 2013
- ↳ Archived: Project Specific
- ↳ Business and Kiosks
- ↳ Digital Art and Portfolios