Bug 7259 - Unable to create different layout files for multiple screen sizes in MD or VS2010
Summary: Unable to create different layout files for multiple screen sizes in MD or VS...
Alias: None
Product: Android
Classification: Xamarin
Component: Designer ()
Version: 4.2.x
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Lluis Sanchez
Depends on:
Reported: 2012-09-18 11:27 UTC by Leonard S.
Modified: 2013-03-18 11:56 UTC (History)
3 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 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 Leonard S. 2012-09-18 11:27:50 UTC
Following the Fragments Walkthrough (http://docs.xamarin.com/android/tutorials/Fragments_Walkthrough/Part_1_-_Walkthrough).

Step 3 of the walkthrough requires being able to create 2 separate layout_main.axml files. Changes to one file affect the other file.

1. Create the first layout_main.axml file in the Resources/Layout folder as specified. Add the fragment section.

2. Create the second file layout_main.axml file in the Resources/Layout-Large folder as specified. Add the fragment and the FrameLayout as specified.

3. Reopen the axml files. 

Expected results:  The files show the proper sections, fragment for the Resources/Layout; fragment and FrameLayout for Resources/Layout-Large.

Actual Results: Both files are identical.

Note: I did have other problems with the UI Designer, related/similar to 6532. 

Version information from MD:


Installation UUID: 083e0361-ab66-44e7-a8ad-e47e8901416a


	Microsoft .NET 4.0.30319.269

	GTK 2.16.6

	GTK# (

Mono for Android: 4.2.5 (Evaluation)

Android SDK: C:\Users\Lsorgdra\AppData\Local\Android\android-sdk

	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)

Java SDK: C:\Program Files (x86)\Java\jdk1.6.0_31

No build info

Operating System:

	Windows 6.1.7601.65536 (64-bit)
Comment 1 Pierce Boggan [MSFT] 2012-10-04 16:14:57 UTC
I've reproduced this along with a few other issues with deleting directories and issues saving:

Version Info:
Installation UUID: def4ac43-fc35-4265-8050-1824ccbc2093
	Mono 2.10.9 (tarball)
	GTK 2.24.10
	GTK# (
	Package version: 210090011
Apple Developer Tools:
	 Xcode 4.5 (1839)
	 Build 4G182
Monotouch: 6.0.4
Mono for Android: 4.2.7 (Evaluation)
Android SDK: /Users/pierceboggan/Library/Developer/Xamarin/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)
Java SDK: /usr
Build information:
	Release ID: 30004007
	Git revision: ea0108260c6a376ecaeffcdb7d03387bd51edda3
	Build date: 2012-09-17 14:09:17+0000
	Xamarin addins: ec43fd5cb223ead4234a9858d1b56eef03dad53a-dirty
Operating System:
	Mac OS X 10.8.2
	Darwin 71-12-112-54.dhcp.mtgm.al.charter.com 12.2.0 Darwin Kernel Version 12.2.0
	    Sat Aug 25 00:48:52 PDT 2012
	    root:xnu-2050.18.24~1/RELEASE_X86_64 x86_64
Comment 2 Lluis Sanchez 2013-03-18 11:56:05 UTC
The layout designer edits all versions of a layout (normal and large in the example) in a single view. There is a selector named "Alt Layouts" in the toolbar which allows you to switch between the different versions of the layout. If you double click on the activity_main.axml file in the layout-large folder, the designer should open with that version selected by default (a bug related to this was fixed a couple of months ago).