Bug 3134 - Designer removes XML comments and doesn't recognize <include> element
Summary: Designer removes XML comments and doesn't recognize <include> element
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Android Designer ()
Version: unspecified
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Lluis Sanchez
Depends on:
Reported: 2012-01-29 23:18 UTC by Alex Corrado [MSFT]
Modified: 2012-02-02 14:59 UTC (History)
0 users

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Alex Corrado [MSFT] 2012-01-29 23:18:59 UTC
Comments in the file should be preserved because someone may choose to edit the AXML file partially by hand. Along those lines, when using an <include> element[1], the designer shows an exception instead of rendering the layout.

[1] http://www.curious-creature.org/2009/02/25/android-layout-trick-2-include-to-reuse/
Comment 1 Lluis Sanchez 2012-02-02 14:59:58 UTC
Comments are not preserved.
The include tag is now supported, although it only supports rendering, not in-place editing.