O'Reilly logo

LiveCode Mobile Development Beginner's Guide by Colin Holgate

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Adjusting things for different screen sizes

So far we have only tested using an iPhone size, and only the Portrait orientation. You may well want to use the same stack for iPhone and iPad, or perhaps iPad and an Android tablet, which have quite different aspect ratios.

Even if you stick only to the iPhone, you would still want to take care of Portrait and Landscape orientations. We therefore have to find ways to arrange the many controls on the card to look their best for each screen size and orientation.

There are several ways to achieve this. Firstly we'll look at using a resize handler.

Layout using a resize handler

When a stack's window size changes, LiveCode sends a resizeStack message that we can trap, in order to rearrange the controls for ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required