{"id":736,"date":"2016-05-17T05:59:12","date_gmt":"2016-05-17T05:59:12","guid":{"rendered":"http:\/\/abhiandroid.com\/androidstudio\/?p=736"},"modified":"2018-06-05T07:20:43","modified_gmt":"2018-06-05T07:20:43","slug":"add-create-landscape-layout-android-studio","status":"publish","type":"post","link":"https:\/\/abhiandroid.com\/androidstudio\/add-create-landscape-layout-android-studio.html","title":{"rendered":"How to Add\/Create Landscape Layout in Android Studio"},"content":{"rendered":"<p>In android, every application is designed in almost both the orientations i.e Portrait and Landscape. By default Android Studio gives you the option to design your application in Portrait mode but for Landscape we need to make some extra settings or more specifically, we need to add\/create a Landscape Layout folder under res folder. As per Android developer website guide lines the name of this folder should be <strong>&#8220;layout-land&#8221;<\/strong>.<\/p>\n<hr \/>\n<h4><strong>How to Add \/ Create Landscape Layout in Android Studio<\/strong><\/h4>\n<p>Lets see how to create layout-land inside your project:<\/p>\n<p><strong>Step 1<\/strong>: Open your Android Studio and if your project is opened in &#8220;Android&#8221; perspective then change it to &#8220;Project&#8221; Perspective(Option is available on the Left side of your android studio)<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-769\" src=\"\/androidstudio\/wp-content\/uploads\/2016\/05\/Project-perspective-Android-Studio.jpg\" alt=\"Project perspective Android Studio\" width=\"349\" height=\"207\" srcset=\"https:\/\/abhiandroid.com\/androidstudio\/wp-content\/uploads\/2016\/05\/Project-perspective-Android-Studio.jpg 349w, https:\/\/abhiandroid.com\/androidstudio\/wp-content\/uploads\/2016\/05\/Project-perspective-Android-Studio-300x178.jpg 300w\" sizes=\"auto, (max-width: 349px) 100vw, 349px\" \/><\/p>\n<p><strong>Step 2<\/strong>: Open App folder inside your project folder<\/p>\n<p><strong>Step 3<\/strong>: \u00a0Then open <strong>src <\/strong>&gt;<strong> main<\/strong> &gt;<strong>res<\/strong>. Here you have all the folder which help in creating UI for your app.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-770\" src=\"\/androidstudio\/wp-content\/uploads\/2016\/05\/app-src-res-folder-in-Android-Studio.jpg\" alt=\"app src res folder in Android Studio\" width=\"275\" height=\"326\" srcset=\"https:\/\/abhiandroid.com\/androidstudio\/wp-content\/uploads\/2016\/05\/app-src-res-folder-in-Android-Studio.jpg 275w, https:\/\/abhiandroid.com\/androidstudio\/wp-content\/uploads\/2016\/05\/app-src-res-folder-in-Android-Studio-253x300.jpg 253w\" sizes=\"auto, (max-width: 275px) 100vw, 275px\" \/><\/p>\n<p><strong>Step 4<\/strong>: Right click on <strong>res<\/strong> folder click <strong>New&gt;Directory<\/strong>. Android studio will open a dialog box.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-771\" src=\"\/androidstudio\/wp-content\/uploads\/2016\/05\/Create-New-Directory-in-res-Android-Studio.jpg\" alt=\"Create New Directory in res Android Studio\" width=\"673\" height=\"278\" srcset=\"https:\/\/abhiandroid.com\/androidstudio\/wp-content\/uploads\/2016\/05\/Create-New-Directory-in-res-Android-Studio.jpg 673w, https:\/\/abhiandroid.com\/androidstudio\/wp-content\/uploads\/2016\/05\/Create-New-Directory-in-res-Android-Studio-300x124.jpg 300w\" sizes=\"auto, (max-width: 673px) 100vw, 673px\" \/><\/p>\n<p><strong>Step 5<\/strong>: Inside Dialog box you have to give a directory name or you can say name of our new folder. So it would be<strong> &#8220;layout-land&#8221;<\/strong>. Click Ok.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-772\" src=\"\/androidstudio\/wp-content\/uploads\/2016\/05\/layout-land-directory-in-res-folder-android-studio.jpg\" alt=\"layout-land directory in res folder android studio\" width=\"451\" height=\"172\" srcset=\"https:\/\/abhiandroid.com\/androidstudio\/wp-content\/uploads\/2016\/05\/layout-land-directory-in-res-folder-android-studio.jpg 451w, https:\/\/abhiandroid.com\/androidstudio\/wp-content\/uploads\/2016\/05\/layout-land-directory-in-res-folder-android-studio-300x114.jpg 300w\" sizes=\"auto, (max-width: 451px) 100vw, 451px\" \/><\/p>\n<p><strong>Step 6:<\/strong> Now you have &#8220;layout-land&#8221; folder in your project. Right click on it <strong>New<\/strong>&gt;<strong>XML<\/strong>&gt;<strong>Layout XML file<\/strong>. This file will be create inside layout folder(portrait)<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-773\" src=\"\/androidstudio\/wp-content\/uploads\/2016\/05\/layout-xml-file-in-layout-land-folder-android-studio.jpg\" alt=\"layout xml file in layout land folder android studio\" width=\"784\" height=\"489\" srcset=\"https:\/\/abhiandroid.com\/androidstudio\/wp-content\/uploads\/2016\/05\/layout-xml-file-in-layout-land-folder-android-studio.jpg 784w, https:\/\/abhiandroid.com\/androidstudio\/wp-content\/uploads\/2016\/05\/layout-xml-file-in-layout-land-folder-android-studio-300x187.jpg 300w, https:\/\/abhiandroid.com\/androidstudio\/wp-content\/uploads\/2016\/05\/layout-xml-file-in-layout-land-folder-android-studio-768x479.jpg 768w\" sizes=\"auto, (max-width: 784px) 100vw, 784px\" \/><\/p>\n<p><strong>Step 7:<\/strong> Cut layout xml file<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-775\" src=\"\/androidstudio\/wp-content\/uploads\/2016\/05\/Cut-layout-xml-android-studio.jpg\" alt=\"Cut layout xml android studio\" width=\"529\" height=\"305\" srcset=\"https:\/\/abhiandroid.com\/androidstudio\/wp-content\/uploads\/2016\/05\/Cut-layout-xml-android-studio.jpg 529w, https:\/\/abhiandroid.com\/androidstudio\/wp-content\/uploads\/2016\/05\/Cut-layout-xml-android-studio-300x173.jpg 300w\" sizes=\"auto, (max-width: 529px) 100vw, 529px\" \/><\/p>\n<p><strong>Step 8:<\/strong>\u00a0Paste it under your <strong>&#8220;layout-land&#8221;<\/strong> folder and click ok. Now open your xml file. You will get the Landscape mode.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-776\" src=\"\/androidstudio\/wp-content\/uploads\/2016\/05\/paste-layout-in-layout-land-android-studio.jpg\" alt=\"paste layout in layout-land android studio\" width=\"525\" height=\"319\" srcset=\"https:\/\/abhiandroid.com\/androidstudio\/wp-content\/uploads\/2016\/05\/paste-layout-in-layout-land-android-studio.jpg 525w, https:\/\/abhiandroid.com\/androidstudio\/wp-content\/uploads\/2016\/05\/paste-layout-in-layout-land-android-studio-300x182.jpg 300w\" sizes=\"auto, (max-width: 525px) 100vw, 525px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In android, every application is designed in almost both the orientations i.e Portrait and Landscape. By default Android Studio gives you the option to design your application in Portrait mode but for Landscape we need to make some extra settings or more specifically, we need to add\/create a Landscape Layout folder under res folder. As &hellip; <a href=\"https:\/\/abhiandroid.com\/androidstudio\/add-create-landscape-layout-android-studio.html\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">How to Add\/Create Landscape Layout in Android Studio<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[63,65,62],"tags":[],"class_list":["post-736","post","type-post","status-publish","format-standard","hentry","category-android-studio","category-layout","category-tips"],"psp_head":"<title>How to Add\/Create Landscape Layout in Android Studio \u2013 Abhi Android<\/title>\r\n<meta name=\"description\" content=\"We need to add\/create a Landscape Layout folder under res folder. As per Android developer website guide lines the name of this folder should be &quot;layout-land&quot;.\" \/>\r\n<meta name=\"robots\" content=\"index,follow\" \/>\r\n<link rel=\"canonical\" href=\"https:\/\/abhiandroid.com\/androidstudio\/add-create-landscape-layout-android-studio.html\" \/>\r\n","_links":{"self":[{"href":"https:\/\/abhiandroid.com\/androidstudio\/wp-json\/wp\/v2\/posts\/736","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/abhiandroid.com\/androidstudio\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/abhiandroid.com\/androidstudio\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/abhiandroid.com\/androidstudio\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/abhiandroid.com\/androidstudio\/wp-json\/wp\/v2\/comments?post=736"}],"version-history":[{"count":1,"href":"https:\/\/abhiandroid.com\/androidstudio\/wp-json\/wp\/v2\/posts\/736\/revisions"}],"predecessor-version":[{"id":1465,"href":"https:\/\/abhiandroid.com\/androidstudio\/wp-json\/wp\/v2\/posts\/736\/revisions\/1465"}],"wp:attachment":[{"href":"https:\/\/abhiandroid.com\/androidstudio\/wp-json\/wp\/v2\/media?parent=736"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/abhiandroid.com\/androidstudio\/wp-json\/wp\/v2\/categories?post=736"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/abhiandroid.com\/androidstudio\/wp-json\/wp\/v2\/tags?post=736"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}