Android Studio: Creating landscape layouts

You can actually use layout-land in Android Studio as well it will show up in your res directory like so:

layout-land

If it doesn’t show up make sure to have your project scope set to Project and not Android.

Project Scope

If you still don’t see one you can create one by right clicking on the res directory and selecting New -> Android resource directory and filling out the prompt below.

New directory

Also, once it’s been created, you can easily switch from portrait to landscape in the layout preview via the orientation button found on the toolbar above the layout preview. It is pictured below:

Orientation Toggle

Leave a Comment