Android Question AutoScaleAll - when X > Y

fireday

Member
Licensed User
Longtime User
hi all

I want to make my design the same at all screen sizes

AutoScaleAll work when X < Y
but how i can see (maybe i do some wrong ?) when X>Y then AutoScaleAll work not true


i can show it on my program:

B4X:
#SupportedOrientations: portrait

it is my desig:
T5tGtV5S.png


// i take screen size (X,Y) to labels to see values

when it start at X < Y
T5tGtV5R.png

when it start at X > Y
T5tGtV5Q.png
its not size to be on full screen !
and i have opinion, maybe its becouse X > Y ?
 
Last edited:

fireday

Member
Licensed User
Longtime User
i don't tell about difference between screen size and activity size
i tell about AutoScaleAll - its dont work fine if X > Y
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
It is not related to landscape vs. portrait.

AutoScaleAll will not stretch the layout. It slightly increases or decreases the controls based on the difference between the device screen and the chosen variant.

If you want to create a stretched layout (which is not a good layout) then you need to set all the dimensions with %x and %y. You can do it in the designer script or code.
 
Upvote 0
Top