Bug 7576 - Same Name Layout - double click opens the first (MonoDroid)
Summary: Same Name Layout - double click opens the first (MonoDroid)
Status: RESOLVED DUPLICATE of bug 6302
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Android Designer ()
Version: 3.0.x
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Lluis Sanchez
URL:
Depends on:
Blocks:
 
Reported: 2012-10-01 17:13 UTC by Ian
Modified: 2013-03-20 06:53 UTC (History)
1 user (show)

Tags:
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:
Status:
RESOLVED DUPLICATE of bug 6302

Description Ian 2012-10-01 17:13:05 UTC
There appears to be a bug in the editor. When there are 2 Layout xmls with the same name in 2 folders, double clicking one, then the other gives you the same file. 

If you Right click and choose Open with Source Code Editor, it's fine.


For images and more see my SOF post:
http://stackoverflow.com/questions/12680393/monodroid-fragments-detail-fragment/12681139#12681139


---------

MonoDevelop 3.0.4.7
Installation UUID: 438ac2b5-07c9-45e7-a8ce-eac5ad86371d
Runtime:
	Mono 2.10.9 (tarball)
	GTK 2.24.10
	GTK# (2.12.0.0)
	Package version: 210090011
Apple Developer Tools:
	 Xcode 4.5 (1839)
	 Build 4G182
Monotouch: 5.4.0
Mono for Android: 4.2.6
Comment 1 Lluis Sanchez 2012-11-16 12:01:08 UTC

*** This bug has been marked as a duplicate of bug 6302 ***
Comment 2 Nischal 2013-03-20 06:53:17 UTC
Today, with the latest builds:

XS 4.0.2.22
MFA 4.6.01073
Mono 2.10.12

We have followed the below mentioned steps:

1. Created the new MFA template application.
2. Added the new folder with the name "layout1" under the resources folder, so
that two folders appears under the resources folder: "layout" and "layout1".
3. Now add a new android layout with the same name as the present one:
"Main.axml" in the folder "layout1"
4. Observe that the fresh empty file Main.axml automatically updates itself to
contain the content of the "Main.axml" appearing in the folder "layout"

Which shows that the issue still exists.

However, if we add another layout with the different name such as "Main1.axml",
then the changes are saved only to the one which is opened.

Not changing the status of the issue, as we are not sure about the correct
behavior.

PJ look into it and confirm the correct behavior and let us know about the
further course of action for this issue.