Layout sizes vary

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
danwood83
Posts: 9
Joined: Thu Jul 25, 2013 3:00 pm

Layout sizes vary

Post by danwood83 » Wed Jul 31, 2013 3:20 pm

I am currently creating a simple app layout just to get use to livecode however when i install it on my mobile (s3) the text is really small and hard to see yet on the virtual drive to test it the text is the right size? I have also tested it on my galaxy tablet 2 and the text is bigger. What am I doing wrong? shouldnt an app be able to enlarge/decrease the text etc dependant on which device you use?

LCNeil
Livecode Staff Member
Livecode Staff Member
Posts: 1223
Joined: Wed Oct 03, 2012 4:07 pm

Re: Layout sizes vary

Post by LCNeil » Wed Jul 31, 2013 4:24 pm

Dear Dan,

Thank you for your request.

Stacks that are deployed to mobile do not currently automatically scale to the devices resolution. Stacks are currently mapped on a 1 to 1 pixel ratio, so if you deploy a stack that is 640 x 480 pixels to your Galaxy S3 (1280 x 720 pixels) it will only display within the top left section of the screen.

We are currently implementing resolution independence in LiveCode and this will bring automatic scaling when deployed to any device.

In the mean time, the following stack overflow post should give you some leads on other methods of resizing your stack-

http://stackoverflow.com/questions/1758 ... 6#17609716

Kind Regards,

Neil Roger
-----
RunRev Support Team ~ http://www.runrev.com
------

danwood83
Posts: 9
Joined: Thu Jul 25, 2013 3:00 pm

Re: Layout sizes vary

Post by danwood83 » Thu Aug 01, 2013 9:12 am

Does this mean i would have to distribute for different screen sizes i.e. do one for tablet and one for s3 etc?

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Layout sizes vary

Post by Simon » Thu Aug 01, 2013 7:03 pm

Hi Dan,
I think if you take a look at the actual code I presented you will see it's built to re-size to different screen resolutions (not pixel density, but that also can be added).

Just try it on a new stack with a few controls on desktop, you can see it in action when you drag the window size.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Post Reply