gjoisa Active Member Licensed User Longtime User Oct 5, 2012 #1 As Erel said : The recommended way to adjust your UI is: 1. AutoScaleAll 2. Adjust the views location as required 3. Use SetLeftAndRight and SetTopAndBottom on the views that should fill the available space) Click to expand... My doubt is , all these 3 things are necessary or If I write AutoScaleAll in my designer script , it is enough . If there is a complete example for this , will help us more .
As Erel said : The recommended way to adjust your UI is: 1. AutoScaleAll 2. Adjust the views location as required 3. Use SetLeftAndRight and SetTopAndBottom on the views that should fill the available space) Click to expand... My doubt is , all these 3 things are necessary or If I write AutoScaleAll in my designer script , it is enough . If there is a complete example for this , will help us more .
lagore Active Member Licensed User Longtime User Oct 5, 2012 #2 My experience so far with the new designer script has been very good. I went from having a designer script with almost 100 lines of code to get the layout just right to 2 lines, I placed these in the 'variant specific script' Code: AutoScaleRate(0.5) AutoScaleAll I have a HTC One X which works out at 360 x 640 scale = 1 and I just have to change the AutoScaleRate to get it to fill the screen correctly. With a different phone/screensize/scale the process is very simple, add a new variant then modify the AutoScaleRate to suit. Obviously if you needed to fix a view to an edge or to a width then that would be included in the 'All variants script' but only needs a line to 2. A very powerful and helpful feature. Upvote 0
My experience so far with the new designer script has been very good. I went from having a designer script with almost 100 lines of code to get the layout just right to 2 lines, I placed these in the 'variant specific script' Code: AutoScaleRate(0.5) AutoScaleAll I have a HTC One X which works out at 360 x 640 scale = 1 and I just have to change the AutoScaleRate to get it to fill the screen correctly. With a different phone/screensize/scale the process is very simple, add a new variant then modify the AutoScaleRate to suit. Obviously if you needed to fix a view to an edge or to a width then that would be included in the 'All variants script' but only needs a line to 2. A very powerful and helpful feature.
gjoisa Active Member Licensed User Longtime User Oct 5, 2012 #3 Does AutoScaleRate(0.5) works commonly for all screen sizes or ? Upvote 0
lagore Active Member Licensed User Longtime User Oct 6, 2012 #4 AutoScaleRate(0.5) was what I needed to use for my particular phone you will have to experiment a bit. Upvote 0
AutoScaleRate(0.5) was what I needed to use for my particular phone you will have to experiment a bit.
J junaidahmed Well-Known Member Licensed User Longtime User Oct 8, 2012 #5 Regarding Autoscale feature,I have one more doubts,Can I autoscale from high resolution (1280 X 800 scale = 1) to (low resolution 480 X 320 scale = 1).pls advise Upvote 0
Regarding Autoscale feature,I have one more doubts,Can I autoscale from high resolution (1280 X 800 scale = 1) to (low resolution 480 X 320 scale = 1).pls advise
lagore Active Member Licensed User Longtime User Oct 8, 2012 #6 I think the way Erel has setup the AutoScale feature is that it has to go from the base phone (320 x 480 or 480 x 320 both scale = 1) up to the new variant also at scale = 1. Upvote 0
I think the way Erel has setup the AutoScale feature is that it has to go from the base phone (320 x 480 or 480 x 320 both scale = 1) up to the new variant also at scale = 1.
J junaidahmed Well-Known Member Licensed User Longtime User Oct 8, 2012 #7 ok i understood the Erel concept,but currently i am developing for samsung galaxy Tab 8.9 with resolution 1280 X 800 and scale = 1 ,i would like to replace the same layout (with autoscale feature) for samsung Galaxy Note 5.3 with resolution 1280 X 800 and scale = 2.pls advise Eagerly awaiting for your reply Upvote 0
ok i understood the Erel concept,but currently i am developing for samsung galaxy Tab 8.9 with resolution 1280 X 800 and scale = 1 ,i would like to replace the same layout (with autoscale feature) for samsung Galaxy Note 5.3 with resolution 1280 X 800 and scale = 2.pls advise Eagerly awaiting for your reply
Erel B4X founder Staff member Licensed User Longtime User Oct 8, 2012 #8 AutoScaleAll is a tool. It is not the best solution in all cases. In order to use AutoScaleAll you will need to create a base "standard phone" layout and preferably remove all other variants. Upvote 0
AutoScaleAll is a tool. It is not the best solution in all cases. In order to use AutoScaleAll you will need to create a base "standard phone" layout and preferably remove all other variants.
J junaidahmed Well-Known Member Licensed User Longtime User Oct 9, 2012 #9 Thanks Erel,sorry for asking question again & again regarding screen size. Upvote 0
J junaidahmed Well-Known Member Licensed User Longtime User Oct 9, 2012 #10 Thank you very much Erel,I have designed a layout in 480 X 320 and set autoscale feature,now I can run my application on all devices,so my problem has solved after a long time back. sorry for my bad english Upvote 0
Thank you very much Erel,I have designed a layout in 480 X 320 and set autoscale feature,now I can run my application on all devices,so my problem has solved after a long time back. sorry for my bad english