P phukol Active Member Licensed User Longtime User Jul 29, 2015 #1 Hi guys! 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. Attachments 1.png 71.5 KB · Views: 459 2.png 89.8 KB · Views: 415
Hi guys! 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.
Erel B4X founder Staff member Licensed User Longtime User Jul 29, 2015 #2 The emulator screen size is equivalent to: 360x640 scale = 1.0 Upvote 0
P phukol Active Member Licensed User Longtime User Jul 30, 2015 #3 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? Upvote 0
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?
Erel B4X founder Staff member Licensed User Longtime User Jul 30, 2015 #4 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. Upvote 0
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.