Bug 5407 - main.axml gets rewritten with invalid code on save
Summary: main.axml gets rewritten with invalid code on save
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Android Designer ()
Version: 3.0.x
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Jérémie Laval
Depends on:
Reported: 2012-05-30 03:48 UTC by Darren Abbott
Modified: 2015-07-02 09:21 UTC (History)
2 users (show)

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 for Bug 5407 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:

Description Darren Abbott 2012-05-30 03:48:25 UTC
Description of Problem:

main.axml is rewritten on save, with added attributes (android:placeholder="true") that cause compile-time errors.

Steps to reproduce the problem:
1. Follow steps to create HelloTableLayout.  Copy and paste main.axml code from http://docs.xamarin.com/android/tutorials/User_Interface/table_layout.

2. Save main.axml

3. Build->Build All

Actual Results:

Upon saving main.axml, extra attribute 'android:placeholder="true"' is added to first TextView in each row.  Compiler flags these "No resource identifier for attribute 'placeholder' in package 'android'".

Expected Results:

Never modify XML when in Source view.

How often does this happen? 

Every time for this sample.

Additional Information:
Comment 1 Lluis Sanchez 2014-02-05 11:25:21 UTC
Which version of Xamarin Studio are you using?
Comment 2 Darren Abbott 2014-02-08 07:15:42 UTC
Whichever version was current back in May 2012.  It looks like I tagged it 3.0.x, which is probably correct.  I ended up switching to using Visual Studio instead so haven't tracked if this is still a problem or if it has been fixed.
Comment 3 Lluis Sanchez 2014-02-10 03:05:24 UTC
This is no happening anymore, so closing.