Page 1 of 1

Stack resize

Posted: Wed Jan 07, 2015 12:14 pm
by francof
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

Re: Stack resize

Posted: Wed Jan 07, 2015 1:41 pm
by Klaus
Hi franco,

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


Best

Klaus

Re: Stack resize

Posted: Thu Jan 08, 2015 5:23 pm
by francof
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

Re: Stack resize

Posted: Thu Jan 08, 2015 6:04 pm
by Klaus
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

Re: Stack resize

Posted: Thu Jan 08, 2015 7:13 pm
by francof
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

Re: Stack resize

Posted: Fri Jan 09, 2015 5:14 pm
by jacque
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.

Re: Stack resize

Posted: Fri Jan 09, 2015 7:01 pm
by francof
Hi jacque,
do you mean letterbox, noBorder, etc.

ciao
franco

Re: Stack resize

Posted: Fri Jan 09, 2015 7:17 pm
by jacque
francof wrote:Hi jacque,
do you mean letterbox, noBorder, etc.
Yes. See if any of those are better for your stack.

Re: Stack resize

Posted: Sat Jan 10, 2015 10:47 am
by francof
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

Re: Stack resize

Posted: Sat Jan 10, 2015 8:25 pm
by jacque
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?

Re: Stack resize

Posted: Sun Jan 11, 2015 3:05 pm
by francof
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

Re: Stack resize

Posted: Sun Jan 11, 2015 8:48 pm
by jacque
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.

Re: Stack resize

Posted: Mon Jan 12, 2015 4:27 pm
by francof
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