Wish Stretch views in designer to all screen size

ilan

Expert
Licensed User
Longtime User
Once you learn to work with anchors, you will see that in most cases it is very simple to create a flexible layout

sorry erel, you are right. i tried to scale one of my app and i am sitting here for maybe 3 hours to find a simple way to do it by creating external tool with functions
and try to read the .bal file via json....

and then i gave it a try and in 3 minutes my layout is looking great on all different screensize by just using some anchors.
(why do i always need to run with the head through the wall to understand that there is a wall :))

(but i must mention that it works only if i set AutoScaleRate(1))

so this is basically my code in the designer script:

B4X:
AutoScaleRate(1)
AutoScaleAll
 

LucaMs

Expert
Licensed User
Longtime User
"I have a dream, that my four little children will one day live in a nation where they will have mobile devices with unique screen ratio, maybe 16:9"

[the problem is to procreate four children soon :p]
 
Last edited:

DonManfred

Expert
Licensed User
Longtime User
why do i always need to run with the head through the wall to understand that there is a wall :)
You shouldnĀ“t use GLASSES as a wall :D
 
Top