Bug 15888 - [Android designer] The selected "Alternative Layout" does not always match the layout used at runtime
Summary: [Android designer] The selected "Alternative Layout" does not always match th...
Status: RESOLVED FIXED
Alias: None
Product: Android
Classification: Xamarin
Component: Designer ()
Version: 4.10.1
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Lluis Sanchez
URL:
Depends on:
Blocks:
 
Reported: 2013-11-01 22:12 UTC by Brendan Zagaeski (Xamarin Team, assistant)
Modified: 2013-11-06 11:10 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Test case (13.71 KB, application/zip)
2013-11-01 22:12 UTC, Brendan Zagaeski (Xamarin Team, assistant)
Details


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 FIXED

Description Brendan Zagaeski (Xamarin Team, assistant) 2013-11-01 22:12:37 UTC
Created attachment 5317 [details]
Test case

Reported on behalf of a user.


## Steps to reproduce
1. Open attached test project
2. Open one of the layout files in the designer.
3. Select the Nexus 7 device. Note that values are read from "sw500dp", but the selected layout is "Default".
4. Select the Nexus S device. Note that values are read from "sw330dp", but the selected layout is "Default".


## Results

Nexus 7
-------
         Designer   Device or Emulator
Layout   default    sw500dp
Values   sw500dp    sw500dp


Nexus S
-------
         Designer   Emulator
Layout   default    default
Values   sw330dp    default


Custom LG L9 device (4.7", 540 x 960)
-------------------------------------
         Designer   Device or Emulator
Layout   default    sw330dp
Values   sw500dp    sw330dp


## Expected results
The Layout and Values in the designer should match the Layout and Values at runtime.


## Version information
Xamarin.Android 4.10.1
Xamarin Studio  4.1.13
Comment 1 Brendan Zagaeski (Xamarin Team, assistant) 2013-11-02 11:15:51 UTC
I should also note that the new designer interface is very nice! I think these non-standard "sw" sizes are just a corner case that behaved incorrectly in the old designer interface too. So this is not a regression.
Comment 3 Lluis Sanchez 2013-11-06 11:10:17 UTC
Fixed in 4.2.