Search code examples
visual-studio-2012designerxamarinxamarin.android

Xamarin Android to edit axml. where to switch Design/Code?


I'm trying to make Android app with VS2012+Xamarin. As a WPF programmer, I usually toggle Design/Code with F7/Ctrl+F7 during XAML editing.

However, I cannot find in axml editting. (I use 'Open With...' to call XML editor). I found Xamarin Studio has this button at the bottom left corner of the editor.

Does Xamarin+VS miss this feature? or is there any keyboard shortcut?


Solution

  • As there's no formal link between a layout file (the .axml file) and an Android Activity class, there's no real way for it to know what you'd want to switch to/from.

    A single Activity might use more than one layout file or a single layout file might be used by more than one Activity.

    I usually just arrange the tabs so that the layout file and Activity class are next to each other.