I have read discussions about the “ideal” config.lua, and I’ve seen various people talk about “position everything relative to center”, but I’ve yet to find a good tutorial, model, example, or really clear discussion about the best “pattern” for positioning UI objects on the screen (to account for lots of different device size/resolutions)
I’ve implemented some of my own techniques, such as:
- detecting screen size and overloading the group:insert() to automatically position objects in a “grid”
- detecting screen height, and overloading group:insert() to position objects at a certain “percent down” the screen
Those both work reasonably well, but as I’m a mobile novice, I keep thinking that someone must have a cleaner and more universal way to build one UI for lots of different screen sizes and resolutions. I’ve got a lot of experience in software (backend) architecture and scalability and I’m not going to be interested in anything hackish or kludgy…I’m searching for a solid design pattern explained to me by someone who really understands what that means…
So I’m soliciting feedback, or even offering to hire someone to teach me the “right” way to manage relative positions between UI objects (for business apps).