Page 1 of 1

Resolution Independence

Posted: Sun Dec 21, 2014 5:28 pm
by maxs
SO has this been implemented yet?

If we hit just £7,000 over our target we can add Resolution Independence. That means seamless support for variable screen densities and display resolutions. Perfect for today's multitude of device form factors, screen resolutions and retina displays.

You'll be able to set the design resolution of your app so that it scales appropriately when displayed on a device with a higher screen resolution. You'll also be able to design your app at a single size and have it scale appropriately depending on the screen size automatically. Your apps will look great with far less effort.

This feature also gives us identical graphics rendering on all platforms, alpha channel support for patterns and the ability to render images on the server platform.

Re: Resolution Independence

Posted: Mon Dec 22, 2014 4:33 pm
by jacque
Yes, it's been done for a while now. See "fullscreenmode" in the dictionary for starters, and follow all the "see also" suggestions from there.

Re: Resolution Independence

Posted: Mon Feb 09, 2015 1:00 am
by maxs
This command: set the fullscreenmode of this stack to "exactFit" does nothing.

My app has been rejected from the app store 4 times because the images will not resize to fit the screen for iphone 4.

Also, I tested it on the simulator, same thing. The debugger tells me that my Fullscreenmode is "exactfit", but nothing happens.

Does this thing even work?

Max

Re: Resolution Independence

Posted: Mon Feb 09, 2015 1:35 am
by Simon
Hi Max,

Code: Select all

on preOpenStack
set the fullscreenMode of this stack to "exactFit"
end preOpenStack
Are you saying that does nothing for you on the device?

Simon
edit;
Oooops, I should read more carefully :oops:
I guess you are.

Re: Resolution Independence

Posted: Mon Feb 09, 2015 2:16 am
by maxs
It does nothing nowhere, nohow.
Not on a Mac, IOS or simulator.

Re: Resolution Independence

Posted: Mon Feb 09, 2015 2:35 am
by Simon
hmmmm....
I just tested this with LC 7.0.2 (rc1) and 6.7.2 (rc2) and it is working for me (only tested on Android).
Which version of liveCode are you using?
exactFit_test.zip
LC 7.0.2 (rc1)
(1.25 KiB) Downloaded 184 times
You'll see the circle turn into an oval on a device.

Simon

Re: Resolution Independence

Posted: Mon Feb 09, 2015 4:30 am
by maxs
Si Simon

Yes, it does work on my simulator too.

How curious the exact same code does nothing in my stacks.

Thanks for taking the time to check this out for me, and building the sample. I'm at least hopeful now.

Max

Re: Resolution Independence

Posted: Tue Apr 07, 2015 12:04 am
by harper58
In Android 5.1 and probably other platforms, the preopenstack handler listed above needs to be in the script of card 1, not in the stack script where it would make sense.