Android Question Problems in Running Landscape Layout

Discussion in 'Android Questions' started by phukol, Jul 29, 2015.

  1. phukol

    phukol Active Member Licensed 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.
     

    Attached Files:

    • 1.png
      1.png
      File size:
      71.5 KB
      Views:
      24
    • 2.png
      2.png
      File size:
      89.8 KB
      Views:
      23
  2. Erel

    Erel Administrator Staff Member Licensed User

    The emulator screen size is equivalent to: 360x640 scale = 1.0
     
  3. phukol

    phukol Active Member Licensed 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?
     
  4. Erel

    Erel Administrator Staff Member Licensed 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.
     
Loading...