{"id":38008,"date":"2018-09-24T01:01:52","date_gmt":"2018-09-24T05:01:52","guid":{"rendered":"https:\/\/blog.xamarin.com\/?p=38008"},"modified":"2019-03-25T14:06:14","modified_gmt":"2019-03-25T22:06:14","slug":"split-view-android-designer","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/xamarin\/split-view-android-designer\/","title":{"rendered":"Using the Android Designer Split View"},"content":{"rendered":"<p>\t\t\t\tThe ability to see the\u00a0design view and\u00a0layout XML at the same time, side by side, was one of\u00a0our\u00a0most requested features for the\u00a0Android Designer. With <a href=\"https:\/\/docs.microsoft.com\/en-us\/xamarin\/android\/user-interface\/android-designer\/designer-basics?tabs=vswin\">Split View<\/a>, new in the <strong>Visual Studio 2017 version 15.8 release<\/strong>, you can switch back &amp; forth\u00a0freely\u00a0between both modes of working. Edit the layout XML to see the changes immediately previewed\u00a0in the designer or make changes in the designer and see the XML update.\u00a0<span>(Note: Split View is currently just available on Windows, not yet on Visual Studio for Mac.)<\/span><\/p>\n<h2><span class=\"TextRun SCXW102066375\" lang=\"EN-US\" xml:lang=\"EN-US\"><span class=\"NormalTextRun SCXW102066375\">Using\u00a0<\/span><\/span><span class=\"TextRun SCXW102066375\" lang=\"EN-US\" xml:lang=\"EN-US\"><span class=\"NormalTextRun SCXW102066375\">Split View<\/span><\/span><\/h2>\n<p>By\u00a0default, Split View appears with the designer on the left and\u00a0editor on the right.\u00a0If you prefer\u00a0the editor on the left, hit the <strong>Swap Panes<\/strong>\u00a0button at the top of the vertical splitter bar. To make the designer pane narrower, so it has less whitespace and the editor has more room, drag the splitter.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/44\/2019\/03\/swap-panes.gif\"><img decoding=\"async\" class=\"aligncenter wp-image-38013\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/44\/2019\/03\/swap-panes.gif\" alt=\"\" width=\"900\" height=\"530\" \/><\/a><\/p>\n<p><span class=\"TextRun SCXW56892399\" lang=\"EN-US\" xml:lang=\"EN-US\"><span class=\"NormalTextRun SCXW56892399\">You can also split the UI horizontally or go back to the old tabbed UI. Use the buttons at the bottom of the splitter bar to do this on a per-file basis.<\/span><\/span><\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/44\/2019\/03\/horizontal-split-and-tab-view.gif\"><img decoding=\"async\" class=\"aligncenter wp-image-38010\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/44\/2019\/03\/horizontal-split-and-tab-view.gif\" alt=\"\" width=\"900\" height=\"530\" \/><\/a><\/p>\n<h3>Sticky Layouts<\/h3>\n<p><span class=\"TextRun SCXW233734475\" lang=\"EN-US\" xml:lang=\"EN-US\"><span class=\"NormalTextRun SCXW233734475\">The split view\u00a0<\/span><\/span><span class=\"TextRun SCXW233734475\" lang=\"EN-US\" xml:lang=\"EN-US\"><span class=\"NormalTextRun SCXW233734475\">window\u00a0<\/span><\/span><span class=\"TextRun SCXW233734475\" lang=\"EN-US\" xml:lang=\"EN-US\"><span class=\"NormalTextRun SCXW233734475\">layout is\u00a0<\/span><\/span><span class=\"TextRun SCXW233734475\" lang=\"EN-US\" xml:lang=\"EN-US\"><span class=\"NormalTextRun SCXW233734475\">sticky.\u00a0<\/span><\/span><span class=\"TextRun SCXW233734475\" lang=\"EN-US\" xml:lang=\"EN-US\"><span class=\"NormalTextRun SCXW233734475\">It is remembered on a per file basis, so once you get the layout just right it will be\u00a0<\/span><\/span><span class=\"TextRun SCXW233734475\" lang=\"EN-US\" xml:lang=\"EN-US\"><span class=\"NormalTextRun SCXW233734475\">used\u00a0<\/span><\/span><span class=\"TextRun SCXW233734475\" lang=\"EN-US\" xml:lang=\"EN-US\"><span class=\"NormalTextRun SCXW233734475\">next time you open that same <strong>.<\/strong><\/span><\/span><strong><span class=\"TextRun SCXW233734475\" lang=\"EN-US\" xml:lang=\"EN-US\"><span class=\"SpellingError SCXW233734475\">axml<\/span><\/span><\/strong><span class=\"TextRun SCXW233734475\" lang=\"EN-US\" xml:lang=\"EN-US\"><span class=\"NormalTextRun SCXW233734475\">\u00a0file.<\/span><\/span><span class=\"TextRun SCXW233734475\" lang=\"EN-US\" xml:lang=\"EN-US\"><span class=\"NormalTextRun SCXW233734475\">\u00a0The WPF\/UWP XAML designer\u00a0<\/span><\/span><span class=\"TextRun SCXW233734475\" lang=\"EN-US\" xml:lang=\"EN-US\"><span class=\"NormalTextRun SCXW233734475\">and 15.8\u00a0<\/span><\/span><span class=\"TextRun SCXW233734475\" lang=\"EN-US\" xml:lang=\"EN-US\"><span class=\"SpellingError SCXW233734475\">Xamarin.Forms<\/span><\/span><span class=\"TextRun SCXW233734475\" lang=\"EN-US\" xml:lang=\"EN-US\"><span class=\"NormalTextRun SCXW233734475\">\u00a0Previewer all work\u00a0<\/span><\/span><span class=\"TextRun SCXW233734475\" lang=\"EN-US\" xml:lang=\"EN-US\"><span class=\"NormalTextRun SCXW233734475\">the same. They\u00a0<\/span><\/span><span class=\"TextRun SCXW233734475\" lang=\"EN-US\" xml:lang=\"EN-US\"><span class=\"NormalTextRun SCXW233734475\">all\u00a0<\/span><\/span><span class=\"TextRun SCXW233734475\" lang=\"EN-US\" xml:lang=\"EN-US\"><span class=\"NormalTextRun SCXW233734475\">share the same split view UI code.<\/span><\/span><span class=\"LineBreakBlob BlobObject DragDrop SCXW233734475\"><span class=\"SCXW233734475\">\u00a0<\/span><br class=\"SCXW233734475\" \/><\/span><span class=\"LineBreakBlob BlobObject DragDrop SCXW233734475\"><span class=\"SCXW233734475\">\u00a0<\/span><br class=\"SCXW233734475\" \/><\/span><span class=\"TextRun SCXW233734475\" lang=\"EN-US\" xml:lang=\"EN-US\"><span class=\"NormalTextRun SCXW233734475\">Those per-file\u00a0<\/span><\/span><span class=\"TextRun SCXW233734475\" lang=\"EN-US\" xml:lang=\"EN-US\"><span class=\"NormalTextRun SCXW233734475\">sticky\u00a0<\/span><\/span><span class=\"TextRun SCXW233734475\" lang=\"EN-US\" xml:lang=\"EN-US\"><span class=\"NormalTextRun SCXW233734475\">settings\u00a0<\/span><\/span><span class=\"TextRun SCXW233734475\" lang=\"EN-US\" xml:lang=\"EN-US\"><span class=\"NormalTextRun SCXW233734475\">are\u00a0<\/span><\/span><span class=\"TextRun SCXW233734475\" lang=\"EN-US\" xml:lang=\"EN-US\"><span class=\"NormalTextRun SCXW233734475\">remembered\u00a0<\/span><\/span><span class=\"TextRun SCXW233734475\" lang=\"EN-US\" xml:lang=\"EN-US\"><span class=\"NormalTextRun SCXW233734475\">in the hidden <strong>.vs<\/strong>\u00a0directory,\u00a0<\/span><\/span><span class=\"TextRun SCXW233734475\" lang=\"EN-US\" xml:lang=\"EN-US\"><span class=\"NormalTextRun SCXW233734475\">next to the solution<\/span><\/span><span class=\"TextRun SCXW233734475\" lang=\"EN-US\" xml:lang=\"EN-US\"><span class=\"NormalTextRun SCXW233734475\">\u2019s<\/span><\/span><span class=\"TextRun SCXW233734475\" lang=\"EN-US\" xml:lang=\"EN-US\"><span class=\"NormalTextRun SCXW233734475\">\u00a0<strong>.<\/strong><\/span><\/span><strong><span class=\"TextRun SCXW233734475\" lang=\"EN-US\" xml:lang=\"EN-US\"><span class=\"SpellingError SCXW233734475\">sln<\/span><\/span><\/strong><span class=\"TextRun SCXW233734475\" lang=\"EN-US\" xml:lang=\"EN-US\"><span class=\"NormalTextRun SCXW233734475\">\u00a0file.\u00a0<\/span><\/span><span class=\"TextRun SCXW233734475\" lang=\"EN-US\" xml:lang=\"EN-US\"><span class=\"NormalTextRun SCXW233734475\">If you ever want to\u00a0<\/span><\/span><span class=\"TextRun SCXW233734475\" lang=\"EN-US\" xml:lang=\"EN-US\"><span class=\"NormalTextRun SCXW233734475\">forget those\u00a0<\/span><\/span><span class=\"TextRun SCXW233734475\" lang=\"EN-US\" xml:lang=\"EN-US\"><span class=\"NormalTextRun SCXW233734475\">sticky\u00a0<\/span><\/span><span class=\"TextRun SCXW233734475\" lang=\"EN-US\" xml:lang=\"EN-US\"><span class=\"NormalTextRun SCXW233734475\">settings\u00a0<\/span><\/span><span class=\"TextRun SCXW233734475\" lang=\"EN-US\" xml:lang=\"EN-US\"><span class=\"NormalTextRun SCXW233734475\">and have the window layouts reset to their default,\u00a0<\/span><\/span><span class=\"TextRun SCXW233734475\" lang=\"EN-US\" xml:lang=\"EN-US\"><span class=\"NormalTextRun SCXW233734475\">exit Visual Studio and delete the <strong>.vs<\/strong> directory. It will be recreated<\/span><\/span><span class=\"TextRun SCXW233734475\" lang=\"EN-US\" xml:lang=\"EN-US\"><span class=\"NormalTextRun SCXW233734475\">.<\/span><\/span><\/p>\n<h2>Split View Preferences<\/h2>\n<p><span class=\"TextRun SCXW141581490\" lang=\"EN-US\" xml:lang=\"EN-US\"><span class=\"NormalTextRun SCXW141581490\">To change the default window layout settings for all <strong>.<\/strong><\/span><\/span><strong><span class=\"TextRun SCXW141581490\" lang=\"EN-US\" xml:lang=\"EN-US\"><span class=\"SpellingError SCXW141581490\">axml<\/span><\/span><\/strong><span class=\"TextRun SCXW141581490\" lang=\"EN-US\" xml:lang=\"EN-US\"><span class=\"NormalTextRun SCXW141581490\">\u00a0files, go to <strong>Tools -&gt; Options -&gt; Xamarin -&gt; Android UI Designer<\/strong>.\u00a0 Note that sticky per-file settings override these global defaults, so you may want\u00a0<\/span><\/span><span class=\"TextRun SCXW141581490\" lang=\"EN-US\" xml:lang=\"EN-US\"><span class=\"NormalTextRun SCXW141581490\">t<\/span><\/span><span class=\"TextRun SCXW141581490\" lang=\"EN-US\" xml:lang=\"EN-US\"><span class=\"NormalTextRun SCXW141581490\">o delete the <strong>.vs<\/strong> directory\u00a0<\/span><\/span><span class=\"TextRun SCXW141581490\" lang=\"EN-US\" xml:lang=\"EN-US\"><span class=\"NormalTextRun SCXW141581490\">to\u00a0<\/span><\/span><span class=\"TextRun SCXW141581490\" lang=\"EN-US\" xml:lang=\"EN-US\"><span class=\"NormalTextRun SCXW141581490\">see everything switch to the new defaults.<\/span><\/span><\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/44\/2019\/03\/tools-option-settings.png\"><img decoding=\"async\" class=\"aligncenter wp-image-38014\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/44\/2019\/03\/tools-option-settings.png\" alt=\"\" width=\"900\" height=\"624\" \/><\/a><\/p>\n<h2>Document Outline<\/h2>\n<p>Although the Android designer\u00a0<a href=\"https:\/\/docs.microsoft.com\/en-us\/xamarin\/android\/user-interface\/android-designer\/designer-basics?tabs=vswin\">Document Outline<\/a> is not a new feature, it&#8217;s a little hidden so you may not know about it. It\u2019s a\u00a0very handy\u00a0feature especially when your page has a lot of controls.<span>\u00a0<\/span><\/p>\n<p>Click on the\u00a0<strong>Document Outline<\/strong> vertical tab on the left\u00a0to show\u00a0the\u00a0outline. If that\u00a0tab does not appear, you may have closed the outline\u00a0window\u00a0earlier.\u00a0Use the <strong>View -&gt; Other Windows -&gt; Document Outline<\/strong> menu item to show it again.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/44\/2019\/03\/show-outline.png\"><img decoding=\"async\" class=\"aligncenter wp-image-38012\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/44\/2019\/03\/show-outline.png\" alt=\"\" width=\"900\" height=\"543\" \/><\/a><\/p>\n<p><span class=\"TextRun SCXW220419960\" lang=\"EN-US\" xml:lang=\"EN-US\"><span class=\"NormalTextRun SCXW220419960\">On<\/span><\/span><span class=\"TextRun SCXW220419960\" lang=\"EN-US\" xml:lang=\"EN-US\"><span class=\"NormalTextRun SCXW220419960\">c<\/span><\/span><span class=\"TextRun SCXW220419960\" lang=\"EN-US\" xml:lang=\"EN-US\"><span class=\"NormalTextRun SCXW220419960\">e the Document Outline is visible you may want to\u00a0<\/span><\/span><span class=\"TextRun SCXW220419960\" lang=\"EN-US\" xml:lang=\"EN-US\"><span class=\"NormalTextRun SCXW220419960\">doc<\/span><\/span><span class=\"TextRun SCXW220419960\" lang=\"EN-US\" xml:lang=\"EN-US\"><span class=\"NormalTextRun SCXW220419960\">k<\/span><\/span><span class=\"TextRun SCXW220419960\" lang=\"EN-US\" xml:lang=\"EN-US\"><span class=\"NormalTextRun SCXW220419960\">\u00a0it below the\u00a0<\/span><\/span><span class=\"TextRun SCXW220419960\" lang=\"EN-US\" xml:lang=\"EN-US\"><span class=\"NormalTextRun SCXW220419960\">T<\/span><\/span><span class=\"TextRun SCXW220419960\" lang=\"EN-US\" xml:lang=\"EN-US\"><span class=\"NormalTextRun SCXW220419960\">oolbox\u00a0<\/span><\/span><span class=\"TextRun SCXW220419960\" lang=\"EN-US\" xml:lang=\"EN-US\"><span class=\"NormalTextRun SCXW220419960\">window, like shown below. U<\/span><\/span><span class=\"TextRun SCXW220419960\" lang=\"EN-US\" xml:lang=\"EN-US\"><span class=\"NormalTextRun SCXW220419960\">se the Document Outline to see all the controls in your layout.\u00a0<\/span><\/span><span class=\"TextRun SCXW220419960\" lang=\"EN-US\" xml:lang=\"EN-US\"><span class=\"NormalTextRun SCXW220419960\">Drag to reorder them,\u00a0<\/span><\/span><span class=\"TextRun SCXW220419960\" lang=\"EN-US\" xml:lang=\"EN-US\"><span class=\"NormalTextRun SCXW220419960\">select to change\u00a0<\/span><\/span><span class=\"TextRun SCXW220419960\" lang=\"EN-US\" xml:lang=\"EN-US\"><span class=\"NormalTextRun SCXW220419960\">their\u00a0<\/span><\/span><span class=\"TextRun SCXW220419960\" lang=\"EN-US\" xml:lang=\"EN-US\"><span class=\"NormalTextRun SCXW220419960\">properties, or\u00a0<\/span><\/span><span class=\"TextRun SCXW220419960\" lang=\"EN-US\" xml:lang=\"EN-US\"><span class=\"NormalTextRun SCXW220419960\">cut\/copy\/paste\/delete them.<\/span><\/span><span class=\"TextRun SCXW220419960\" lang=\"EN-US\" xml:lang=\"EN-US\"><span class=\"NormalTextRun SCXW220419960\">\u00a0It\u2019s a great alternative to manipulating controls on the designer surface.<\/span><\/span><\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/44\/2019\/03\/outline-in-action.gif\"><img decoding=\"async\" class=\"aligncenter wp-image-38011\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/44\/2019\/03\/outline-in-action.gif\" alt=\"\" width=\"900\" height=\"522\" \/><\/a><\/p>\n<h2>Upcoming Split View Features<\/h2>\n<p>Beyond what is\u00a0currently shipped in 15.8, we have been working on more\u00a0Android UI\u00a0creation\u00a0tooling\u00a0enhancements, especially continuing to improve the text editor experience. Here&#8217;s a sampling of what&#8217;s coming:<\/p>\n<ul>\n<li>You&#8217;ll be able to drag from the toolbox to the editor, not just the designer.<\/li>\n<li>The property editor\u00a0will track the current item in the text editor, letting you discover and change properties for it. Now text editor users, not just designer users, can benefit from the property editor.<\/li>\n<li>You&#8217;ll get IntelliSense for non-layout resource XML files too, not just layout files.<\/li>\n<\/ul>\n<p>Look for all of these features, and more, in\u00a0our upcoming\u00a0Visual Studio 2019\u00a0release.<\/p>\n<p>Excited about these changes? What\u00a0else would you like to see from Xamarin.Android?\u00a0Have your own tips to share? <a href=\"https:\/\/forums.xamarin.com\/139747\/using-the-android-designer-split-view\">Please let us know in the Xamarin forums!<\/a>\t\t<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The ability to see the\u00a0design view and\u00a0layout XML at the same time, side by side, was one of\u00a0our\u00a0most requested features for the\u00a0Android Designer. With <a href=\"https:\/\/docs.microsoft.com\/en-us\/xamarin\/android\/user-interface\/android-designer\/designer-basics?tabs=vswin\">Split View<\/a>, new in the <strong>Visual Studio 2017 version 15.8 release<\/strong>, you can switch back &amp; forth\u00a0freely\u00a0between both modes of working. Edit the layout XML to see the changes immediately previewed\u00a0in the designer or make changes in the designer and see the XML update.<\/p>\n","protected":false},"author":801,"featured_media":40953,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[313,2],"tags":[5,901,409,397],"class_list":["post-38008","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-android","category-developers","tag-android","tag-designer","tag-releases","tag-visual-studio"],"acf":[],"blog_post_summary":"<p>The ability to see the\u00a0design view and\u00a0layout XML at the same time, side by side, was one of\u00a0our\u00a0most requested features for the\u00a0Android Designer. With <a href=\"https:\/\/docs.microsoft.com\/en-us\/xamarin\/android\/user-interface\/android-designer\/designer-basics?tabs=vswin\">Split View<\/a>, new in the <strong>Visual Studio 2017 version 15.8 release<\/strong>, you can switch back &amp; forth\u00a0freely\u00a0between both modes of working. Edit the layout XML to see the changes immediately previewed\u00a0in the designer or make changes in the designer and see the XML update.<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/posts\/38008","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/users\/801"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/comments?post=38008"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/posts\/38008\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/media\/40953"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/media?parent=38008"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/categories?post=38008"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/tags?post=38008"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}