Scaling to device for Android

Richard Gaskin ambassador at fourthworld.com
Mon Sep 12 09:06:15 CDT 2011


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:
<http://quality.runrev.com/show_bug.cgi?id=6589>

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 
things appropriately for both the current device and the current 
orientation.

Now that I have a great tablet with the Asus Transformer, it drives me 
crazy 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 a unique layout optimized for it.  I don't need 5" wide buttons, I 
need more 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 app 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 
and whenever the device orientation changes.  We can use the screenrect 
to intelligently reposition things to provide an optimal experience on 
any device.

--
  Richard Gaskin
  Fourth World
  LiveCode training and consulting: http://www.fourthworld.com
  Webzine for LiveCode developers: http://www.LiveCodeJournal.com
  LiveCode Journal blog: http://LiveCodejournal.com/blog.irv



More information about the use-livecode mailing list