I made a layout using 1280 x 800 variant and adjusted the views inside using script. As seen in the first image. But when i try to run the script its displaying ok however when i try to run it in my emulator or phone the layout is not followed. It looks like the second image. What am i possibly doing wrong. I already set #SupportedOrientations: landscape.
Thanks Erel, but i dont get your answer. The emulator that i am running is an S3 with a 720 X 1280 screen. Even if i use a zenfone 2, with a 1080p screen, the output of the screen is the same. Can anyone point me what i am doing wrong?
Why are you using a 1280x800, scale=1 variant? This is a tablet variant. Change the abstract designer size and you will see how it will look on different phones.
You are not using anchors correctly.
The top labels should be anchored to both sides.
The two bottom large views should not be anchored to both sides.
It is hard to say anything about the designer script code without working with your layout file.