Bug 8469 - Layout-Port & Layout-Land Differing Values
Summary: Layout-Port & Layout-Land Differing Values
Status: RESOLVED FEATURE
Alias: None
Product: Android
Classification: Xamarin
Component: Designer ()
Version: 4.2.x
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Lluis Sanchez
URL:
Depends on:
Blocks:
 
Reported: 2012-11-16 16:03 UTC by Pierce Boggan [MSFT]
Modified: 2012-11-17 17:03 UTC (History)
3 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 FEATURE

Description Pierce Boggan [MSFT] 2012-11-16 16:03:36 UTC
"I have the same .xaml filename in layout-port and layout-land. If I change the one in layout-port with MD it writes it out to layout-port and layout-land. If I change it with an editor, start up MD and then run the program they are different/correct. Version 4.2.7."
Comment 2 Lluis Sanchez 2012-11-17 02:43:59 UTC
This is the expected behavior. All versions of the same layout will be modified together unless you lock on a specific qualifier (such as orientation). The following document explains how to work with alternative resources:

http://docs.xamarin.com/Android/Guides/User_Interface/Designer_Overview/Part_3_-_Alternative_Layout_Views
Comment 3 dave 2012-11-17 16:16:55 UTC
The two .axml layouts have a different orientation locked.  One portrait the other landscape, yet MD overwrites both if I change one.  So it's not a feature it's a bug.
Comment 4 dave 2012-11-17 16:25:29 UTC
Opps, my bad.  Saw the lock icon, but realize it wasn't depressed.  After locking both it works great.  Thanks.  BTW, love Mono Android/MonoTouch.
Comment 5 dave 2012-11-17 17:03:42 UTC
The locked setting doesn't seem to be saved.  So I need to lock a layout each time I change it?