Bug 28423 - Creating alternate layouts from the designer puts new .axml files under obj folder
Summary: Creating alternate layouts from the designer puts new .axml files under obj f...
Status: RESOLVED DUPLICATE of bug 27865
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Android Designer ()
Version: 5.8
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: master
Assignee: Jérémie Laval
URL:
Depends on:
Blocks:
 
Reported: 2015-03-25 14:34 UTC by David Barrett
Modified: 2015-05-04 18:56 UTC (History)
2 users (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 27865

Description David Barrett 2015-03-25 14:34:54 UTC
Repro:

1) Create new Android application from Xamarin Studio.
2) Open Main.axml in the designer.
3) Add an alternate layout using the designer tools.  Choose modifiers: Size: Large; Orientation: Portrait
4) Notice that an alternate layout is shown in the designer; however, the obj\Debug\res\layout-large-port folder is added to the project and Main.axml under this folder is included.  Further, however, the file is missing.
Comment 1 David Barrett 2015-03-25 14:40:25 UTC
It should also be noted that you should "Save All" to force the project file to save changes, triggering the update to the project file and seeing the inclusion of the "obj\...." folders.
Comment 2 David Barrett 2015-03-25 18:43:25 UTC
=== Xamarin Studio ===

Version 5.8 (build 443)
Installation UUID: f1732b88-1ebe-448d-89a1-fa075f56d19b
Runtime:
	Mono 3.12.1 ((detached/b7764aa)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 312010000

=== Apple Developer Tools ===

Xcode 6.2 (6776)
Build 6C131e

=== Xamarin.iOS ===

Version: 8.8.0.2 (Enterprise Edition)
Hash: ccfcd59
Branch: 
Build date: 2015-03-10 02:20:32-0400

=== Xamarin.Android ===

Version: 4.20.0.37 (Enterprise Edition)
Android SDK: /Users/davidbarrett/Library/Developer/android-sdk-mac_x86
	Supported Android versions:
		2.1    (API level 7)
		2.2    (API level 8)
		2.3    (API level 10)
		3.1    (API level 12)
		4.0    (API level 14)
		4.0.3  (API level 15)
		4.1    (API level 16)
		4.2    (API level 17)
		4.3    (API level 18)
		4.4    (API level 19)
		4.4.87 (API level 20)
		5.0    (API level 21)
Java SDK: /usr
java version "1.7.0_76"
Java(TM) SE Runtime Environment (build 1.7.0_76-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.76-b04, mixed mode)

=== Xamarin Android Player ===

Not Installed

=== Xamarin.Mac ===

Not Installed

=== Build Information ===

Release ID: 508000443
Git revision: 73883239470cbe8e261c94d95f7c3d0452fd393b
Build date: 2015-03-10 07:22:51-04
Xamarin addins: a2ff7b617f09d9c45d8bbf3d010b5db0d7d36100

=== Operating System ===

Mac OS X 10.10.2
Darwin davidbarrett-mac-2.local 14.1.0 Darwin Kernel Version 14.1.0
    Thu Feb 26 19:26:47 PST 2015
    root:xnu-2782.10.73~1/RELEASE_X86_64 x86_64
Comment 4 Udham Singh 2015-03-26 06:25:05 UTC
I have checked this issue with the help of test steps given bug description and observed that when we select option 'Save All' in File menu after step 3 mentioned in bug description, a 'layout-large-port' folder is getting added in project under folder 'Resources' that contains file 'Main.axml'. 

I have also noticed that a 'layout-large-port' folder is getting added in folder 'obj\Debug\res\' and file 'main.xm' is present under this.

Screencast : http://www.screencast.com/t/BGUylOdNw
Ide Logs : https://gist.github.com/Udham1/96b640d1f16970fe6283
Android Tools Log : https://gist.github.com/Udham1/277882dfcc053a6f10fe

Environment Info : 

=== Xamarin Studio ===

Version 5.8.2 (build 5)
Installation UUID: ce927b2a-2c07-44c5-b186-09cfdafba6dc
Runtime:
	Mono 3.12.1 ((detached/0849ec7)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 312010003

=== Xamarin.Android ===

Version: 4.20.1.0 (Business Edition)
Android SDK: /Users/xamarin76/Desktop/android-sdk-macosx
	Supported Android versions:
		1.6    (API level 4)
		2.1    (API level 7)
		2.2    (API level 8)
		2.3    (API level 10)
		3.1    (API level 12)
		4.0    (API level 14)
		4.0.3  (API level 15)
		4.1    (API level 16)
		4.2    (API level 17)
		4.3    (API level 18)
		4.4    (API level 19)
		4.4.87 (API level 20)
		5.0    (API level 21)
Java SDK: /usr
java version "1.7.0_65"
Java(TM) SE Runtime Environment (build 1.7.0_65-b17)
Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)

=== Xamarin Android Player ===

Version: Unknown version
Location: /Applications/Xamarin Android Player.app

=== Apple Developer Tools ===

Xcode 6.2 (6776)
Build 6C131e

=== Xamarin.iOS ===

Version: 8.8.2.2 (Business Edition)
Hash: f5d0c5e
Branch: 
Build date: 2015-03-20 06:51:49-0400

=== Xamarin.Mac ===

Version: 2.0.0.141 (Business Edition)

=== Build Information ===

Release ID: 508020005
Git revision: 541c06a4f6c95383333375d56fd6c23ce48cb916
Build date: 2015-03-20 09:23:08-04
Xamarin addins: 02510c4990dee3475c282b3182d588975a63ff07

=== Operating System ===

Mac OS X 10.9.5
Darwin Xamarin76s-Mac-mini.local 13.4.0 Darwin Kernel Version 13.4.0
    Sun Aug 17 19:50:11 PDT 2014
    root:xnu-2422.115.4~1/RELEASE_X86_64 x86_64
Comment 5 Jérémie Laval 2015-05-04 18:56:39 UTC

*** This bug has been marked as a duplicate of bug 27865 ***