Bug 16579 - Alternative Layout does not work inside of VS 2013
Summary: Alternative Layout does not work inside of VS 2013
Status: VERIFIED FIXED
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: Android Designer ()
Version: 1.8.x
Hardware: PC Windows
: High normal
Target Milestone: ---
Assignee: Lluis Sanchez
URL:
Depends on:
Blocks:
 
Reported: 2013-12-03 18:56 UTC by James Montemagno [MSFT]
Modified: 2014-03-27 04:13 UTC (History)
9 users (show)

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


Attachments
Log files (22.79 KB, text/plain)
2014-03-06 00:02 UTC, James Montemagno [MSFT]
Details
Top bar, missing devices and such. (33.41 KB, image/png)
2014-03-06 00:03 UTC, James Montemagno [MSFT]
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 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:
VERIFIED FIXED

Description James Montemagno [MSFT] 2013-12-03 18:56:39 UTC
When inside of VS 2013 selecting "Alternative Layout" to do multi-view editing doesn't do anything.

It does work in VS 2012 though
Comment 1 Lluis Sanchez 2013-12-11 04:42:14 UTC
What exactly is not working? can you make a screencast? it works fine here.
Comment 2 James Montemagno [MSFT] 2013-12-11 11:17:06 UTC
So only in VS 2013 when I create a new project (ICS project perhaps).  When you double click on Main.axml and try to turn on alternative layout nothing happens. If you create another layout like layout-land manually then it will show.  Here is video:
http://screencast.com/t/RBzIrdqmeJ

Microsoft Visual Studio Professional 2013
Version 12.0.21005.1 REL
Microsoft .NET Framework
Version 4.5.51641

Installed Version: Professional

Xamarin.Android   4.10.01068 (9d03ce3e)
Visual Studio plugin to enable development for Xamarin.Android.

Xamarin.iOS   1.8.360 (105bc316)
Visual Studio extension to enable development for Xamarin.iOS
Comment 3 Lluis Sanchez 2013-12-12 03:56:24 UTC
I can't reproduce :/
Comment 4 James Montemagno [MSFT] 2014-01-09 16:03:24 UTC
Lluis, is there anything that you need from me to try to reproduce this? Do you want to remote into my machine to take a look? I have been able to reproduce this on a VM and pure windows machine as well.
Comment 5 James Montemagno [MSFT] 2014-02-17 15:52:07 UTC
So I can still re-produce this, but we just looked at it on Mike's machine and it was fine. One thing to note is that there is basically nothing in my toolbar besides alternative layout and mode, which don't work. I can't specify different types of android screen sizes to display....
Comment 6 James Montemagno [MSFT] 2014-03-05 22:20:18 UTC
Lluis, 

Is there anything you need from me that I could help you debug this with? I also get a weird issue where the axml wont' load the first time I open the file.

James
Comment 7 Alan McGovern 2014-03-05 23:50:21 UTC
Can you attach the log files produced by VS? Perhaps they contain something to help diagnose this.
Comment 8 James Montemagno [MSFT] 2014-03-06 00:02:19 UTC
Attaching logs, I cleaned them and this is just a new project and open up designer.
Comment 9 James Montemagno [MSFT] 2014-03-06 00:02:48 UTC
Created attachment 6240 [details]
Log files

Log files
Comment 10 James Montemagno [MSFT] 2014-03-06 00:03:40 UTC
Created attachment 6241 [details]
Top bar, missing devices and such.
Comment 11 James Montemagno [MSFT] 2014-03-06 00:04:00 UTC
Comment on attachment 6241 [details]
Top bar, missing devices and such.

clicking new version and mode doesn't do anything
Comment 12 James Montemagno [MSFT] 2014-03-06 01:43:09 UTC
I finally got it working after:

I had to uninstall:

Xamarin.Android
Xamarin.iOS
Xamarin Studio
Xamarin Universal
Java 6 Update
Java SE Development Kit Kit
GTK
Android SDK Tools
Rebooted

Deleted:
C:\Users\<yourname>\.android
C:\Users\<yourname>\AppData\Local\Android
C:\Users\<yourname>\AppData\Local\Xamarin
C:\Users\<yourname>\AppData\Local\Xamarin-Studio
C:\Program Files (x86)\GtkSharp
C:\Program Files (x86)\Java
C:\Program Files (x86)\MonoDevelop
C:\Program Files (x86)\XamarinStudio

Then I rebooted and did the universal installer.
Followed by the "tools" fix from http://forums.xamarin.com/discussion/14344/
Comment 13 narayanp 2014-03-27 04:13:51 UTC
This may be related to SDK Tool version 22.6. but this one also get fixed with following builds:

Xamarin for VS 1.12.247, when having SDK tool version is 22.6 and Tool 22.3. I am successfully able to open alternative layout and use multi-edit. This is the screencast for the same: http://www.screencast.com/t/P6NSKmuCgG