Bug 20627 - Android designer does not load layout when it is a linked file
Summary: Android designer does not load layout when it is a linked file
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: Android Designer ()
Version: 3.0
Hardware: PC Mac OS
: Low enhancement
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2014-06-16 14:26 UTC by John Miller [MSFT]
Modified: 2015-12-08 20:58 UTC (History)
8 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 for Bug 20627 on Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.
Related Links:

Description John Miller [MSFT] 2014-06-16 14:26:43 UTC
## Overview: 

    The Android Designer does not open a .axml layout when it is added to the project as a linked file.

## Steps to Reproduce: 

    1. Create an Android project.
    2. Add a layout file (.axml) to the Resouces -> layout folder, but choose "Add as Link". 
    3. Double-click the file or right-click->Open With -> Android Designer (default)

## Actual Results: 

    Double-clicking results in the file being opened as a text file (no designer/source tab). 
    Open With-> Android Designer results in an error message dialog: "The file cannot be opened with the selected editor. Please choose another editor."

## Expected Results: 

    The file should be opened in the Designer. 

## Build Date & Platform: 

    XVS 3.0

## Additional Information: 

    The same behavior happens in Xamarin Studio.
Comment 1 Prashant manu 2014-06-17 01:23:12 UTC
Checked,  Android designer does not load layout when it is a linked file.
Screencast: http://screencast.com/t/Y2CdbZqc

Environment Info:
Xamarin (dd4a9192f63442dd0f16446cfe761f2b0d52c9f2)
Comment 3 Jérémie Laval 2015-12-08 20:58:24 UTC
Tagged as feature enhancement, relatively corner case so not currently on our roadmap for a future release.

To be more precise, we do support other resources (like drawable) that are added as links. They will render correctly when referenced from a layout. What we don't support is initially loading a layout file that is itself a link.