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?
591 views Asked by sajjad At
2
There are 2 answers
2
On
you must build layouts on Landscape variation. image
so you can choose this on top bar of android studio xml design.
You can do it exactly like @alireza daryani suggested.
layout.xml
Create landscape variation
"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.