My app is going to be just landscape. But each time I need to set the xml layout editor to landscape mode when I start editing a layout. How can I have my xml layout editor always stay in landscape mode?
Android studio layout editor always landscape?
634 Views Asked by sajjad At
2
There are 2 best solutions below
0
On
You can do it exactly like @alireza daryani suggested.
- Open your
layout.xml - Choose
Create landscape variation
- If you don't need the porttrait variation delete it
"Create landscape variation" will create a layout-land folder in your project so Android Studio will know that these layouts shall be previewed in landscape mode. Into this folder will be an exact copy your origin layout. In my case I just wanted landscape layout for my app, so I deleted the origins. Works perfect.

you must build layouts on Landscape variation. image
so you can choose this on top bar of android studio xml design.