Scaling to device for Android

Maarten Koopmans maarten.koopmans at
Wed Sep 14 16:25:33 EDT 2011

I think we are on the same page, it's just that *I* have to do the work...
But the end  result is probably better.

On Tuesday, September 13, 2011, Richard Gaskin <ambassador at>
> I think we're on the same page:  the "logic" in a logical view is in your
resizeStack handler.
> If I misunderstand please feel free to elaborate.
> --
>  Richard Gaskin
>  Fourth World
>  LiveCode training and consulting:
>  Webzine for LiveCode developers:
>  LiveCode Journal blog:
> Maarten Koopmans wrote:
>> Not sure I agree. If you work with a logical view you don't need to
>> scale at all by default; you can then override it as you see fit
>> On Mon, Sep 12, 2011 at 4:06 PM, Richard Gaskin
>> <ambassador at> wrote:
>>> Maarten Koopmans wrote:
>>>> Subject says it all: does anyone have a clue or a sample handler that
>>>> they know off? This is a real nuisance otherwise :(
>>> There's a request in the RQCC for generalized scaling:
>>> <>
>>> Useful as it is for things like some games, anything with controls on it
>>> will require the developer to write a resizeStack handler to position
>>> appropriately for both the current device and the current orientation.
>>> Now that I have a great tablet with the Asus Transformer, it drives me
>>> to download apps only to find that they merely scale their display for
>>> tablets, rather than take full advantage of the larger form factor with
>>> unique layout optimized for it.  I don't need 5" wide buttons, I need
>>> of a view on the content. ;)
>>> And with orientation, if an app only works in one orientation on my
tablet I
>>> generally uninstall it immediately after I discover that.   I like both
>>> portrait and landscape orientations for different purposes, and if an
>>> doesn't adapt to me I'm not going to adapt to the app - simpler just to
>>> uninstall and find one that was crafted more earnestly.
>>> With LiveCode we have the resizeStack message, sent when the app opens
>>> whenever the device orientation changes.  We can use the screenrect to
>>> intelligently reposition things to provide an optimal experience on any
>>> device.
>>> --
> _______________________________________________
> use-livecode mailing list
> use-livecode at
> Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:

More information about the Use-livecode mailing list