Stack resize

The place to discuss anything and everything about running your LiveCode on Android

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
francof
Posts: 237
Joined: Fri Apr 11, 2014 10:51 am

Stack resize

Post by francof » Wed Jan 07, 2015 12:14 pm

Hi all,

I've dimensioned my app a bit bigger than the screen of the smartphone Galaxy Note (1280x800 5.3") and used

Code: Select all

"set the fullscreenmode of me to "exactFit"
into the Preopencard script, it works fine also on smaller devices.
but on bigger devices, as tablet, I should like avoid to fill the screen. I've tried with

Code: Select all

set the fullscreenmode of me to "noScale" 
but windows appear really small, in relation to the size of the screen.
there is a shorter way instead resizing all the objects?

franco

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Stack resize

Post by Klaus » Wed Jan 07, 2015 1:41 pm

Hi franco,

maybe these two lessons about the new resolution independance feature will help:
http://lessons.runrev.com/m/15262


Best

Klaus

francof
Posts: 237
Joined: Fri Apr 11, 2014 10:51 am

Re: Stack resize

Post by francof » Thu Jan 08, 2015 5:23 pm

Hi Klaus
thanks for your reply,
I've read the lessons you have suggested me, but, so far, without results. I think I must play with screen resolution and density ( mobilePixelDensity ). how?

ciao
franco

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Stack resize

Post by Klaus » Thu Jan 08, 2015 6:04 pm

Hi Franco,
francof wrote:...I think I must play with screen resolution and density ( mobilePixelDensity ). how?
how? :shock:
Come on, I'm sure you will figure something out.


Best

Klaus

francof
Posts: 237
Joined: Fri Apr 11, 2014 10:51 am

Re: Stack resize

Post by francof » Thu Jan 08, 2015 7:13 pm

Ok Klaus, I now. you want me to studies :)
I'll try, for now I've found nothing in the forum and dictionary is, for me, very cryptic.

by your last reply I think I'm in the right direction... tell me a bit more.

ciao
franco

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7393
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Stack resize

Post by jacque » Fri Jan 09, 2015 5:14 pm

You were correct to use the fullscreenmode. Just try some of the other modes. Every app is different so you must experiment with all the parameters to find the one that is best for your app.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

francof
Posts: 237
Joined: Fri Apr 11, 2014 10:51 am

Re: Stack resize

Post by francof » Fri Jan 09, 2015 7:01 pm

Hi jacque,
do you mean letterbox, noBorder, etc.

ciao
franco

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7393
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Stack resize

Post by jacque » Fri Jan 09, 2015 7:17 pm

francof wrote:Hi jacque,
do you mean letterbox, noBorder, etc.
Yes. See if any of those are better for your stack.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

francof
Posts: 237
Joined: Fri Apr 11, 2014 10:51 am

Re: Stack resize

Post by francof » Sat Jan 10, 2015 10:47 am

I'm doing some test changing the parameters of fullscreenmode property.
so far, all of them are filling the screen. except for "noScale" where the stack is centered on the screen instead, this could be good for me, but the stack has a very little dimension. due to the resolution of the device (1232x800 the pixel density), I think.

ciao
franco

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7393
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Stack resize

Post by jacque » Sat Jan 10, 2015 8:25 pm

You could make your stack larger and it would look better, but it might not fit on other devices if it is noScale. Did you try showAll?
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

francof
Posts: 237
Joined: Fri Apr 11, 2014 10:51 am

Re: Stack resize

Post by francof » Sun Jan 11, 2015 3:05 pm

jacque wrote:You could make your stack larger and it would look better,...
yes, me too I have thought at that solution, but, as you said, may have problems on other, small, devices. I will try "showAll"

one more question: can I modify the stack dimensions (Width and Height) by code in run mode?
if yes I may modify the stack as you said, only if the screen of the device (tablet) is greater than x, y

ciao
franco

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7393
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Stack resize

Post by jacque » Sun Jan 11, 2015 8:48 pm

Using a large stack only fails if you choose "noScale". But it does work if you make a very large stack and use a scaling option that reduces the size on smaller screens. For example, create your stack as large as (or larger) than your device screen, and be sure to keep the proportions the same. Then try setting the fullscreenMode to "letterbox" which will show black bars around the stack if the proportions are different on other devices. Or you can try "showAll" and see if that works better.

The important thing is to use the largest device screen you think your users will have, and scale the stack smaller for other devices.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

francof
Posts: 237
Joined: Fri Apr 11, 2014 10:51 am

Re: Stack resize

Post by francof » Mon Jan 12, 2015 4:27 pm

Hi,
I've done a test with fullscreenmode property set to:
showAll
tablet E ShowAll.png
letterbox
tablet E letterbox.png
and noScale
tablet E noScale.png
the best result is, I think, letterbox.
what does not convince me is the label of the button, not sharp. I think I will use this value.

ciao
franco

Post Reply