LC and mobile development what-not
ambassador at fourthworld.com
Mon Oct 8 11:04:54 EDT 2012
Mark Stuart wrote:
> I'm just starting to try my hand at mobile development, using LC 4.6.4.
> (I won't upgrade LC until I see how mobile development goes)
> I've read the Android Release Notes for this version of LC and didn't see
> anything about what font name and size to use for a mobile application,
> starting with Android since I'm on Windows.
> Font - I used Tahoma and size 14. It's way too small for my HTC Incredible
> phone. What is recommended here? (24 seems OK).
> Button size - what size should a button be? Quite large I now know since the
> default size I could hardly see on my device. I tried 50 px. It seems OK.
> Table fields - what are the defaults for mobile? What about the scroll bar
> width? What about gesturing on the table control itself to scroll down and
> up? How is that done? Do I set vertical scroll bars at all?
> These are just a few of the things I've tried so far.
> There must be a document that outlines the mobile platform layout defaults.
> Even better would be the IDE reading the Application Settings and knowing
> there is a mobile platform selected and set the properties palette
This guide from the Android developer site provides some helpful
As you'll discover, central to managing good layouts in Android is
knowing the pixel density of the device, and I'm hoping we'll see a
function for that in a version of the Android engine soon.
Further down the road it would be great to have a means of scaling the
rendering of both cards and groups, useful for so many things beyond
mobile development, but for now we need to write these ourselves.
There's some code here that's helpful for scaling:
Also, Chipp and Ken have been working on a tool to help with this:
It's downloadable here:
LiveCode training and consulting: http://www.fourthworld.com
Webzine for LiveCode developers: http://www.LiveCodeJournal.com
Follow me on Twitter: http://twitter.com/FourthWorldSys
More information about the Use-livecode