Strange Designer behavior

Slacker

Active Member
Licensed User
Longtime User
Hello folks,
Could you explain me why this settings in designer related to screen resolution variant does not work ?

Here is the proof: 2013-07-05_1606 - Sl4ck3r's library

P.S: In all Others variants it does work without troubles...the problem is just when i specifically switch from 320 x 480 to 480 x 320; in the latter the settings about scale rate and scale all do nothing.

Thank you !
 

Slacker

Active Member
Licensed User
Longtime User
I think this is a bug...it could be move your care...:(:(
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
Sorry, but I don't really understand what your problem is.
What exactly do you expect ?
The screen of 320 * 480 or 480 * 320 is the reference screen for AutoScale. So AutoScale doesn't change anything for this screen size because the scale factor is equal to 1 independent of the scale rate value.
These are the equations for AutoScale (430 = 480 - 50 for the two top lines):
B4X:
delta = ((100%x + 100%y) / (320dip + 430dip) - 1)
rate = 0.3 'value between 0 to 1.
scale = 1 + rate * delta
With the standard screen delta = 0 and scale = 1.
The goal of AutoScale is having two layout variants one for 320 * 480 and the other for 480 * 320 and use AutoScale, in the All variant script, to adjust the layout for all the other screen sizes.

Best regards.
 
Upvote 0

GMan

Well-Known Member
Licensed User
Longtime User
Thegoal of AutoScale is having two layout variants one for 320 * 480 and the other for 480 * 320 and use AutoScale, in the All variant script, to adjust the layout for all the other screen sizes.

Best regards.

Thx Klaus for this information.
I played around with the Autoscale functions without really understanding :sign0060:
 
Upvote 0

GMan

Well-Known Member
Licensed User
Longtime User
You find a whole chapter about AutoScale in the Beginner's Guide.

Best regards.

Thx, i read this already but reading and understanding are "2 different pairs of shoes" :BangHead:
 
Upvote 0
Top