Android Question Problems in Running Landscape Layout

phukol

Active Member
Licensed User
Longtime User
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
    1.png
    71.5 KB · Views: 161
  • 2.png
    2.png
    89.8 KB · Views: 144

phukol

Active Member
Licensed User
Longtime User
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

Erel

B4X founder
Staff member
Licensed User
Longtime User
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
Top