Bug 4074 - Monodevelop is rendering xaml files incorrectly
Summary: Monodevelop is rendering xaml files incorrectly
Status: RESOLVED UPSTREAM
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Android Designer ()
Version: Trunk
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Lluis Sanchez
URL:
Depends on:
Blocks:
 
Reported: 2012-03-23 12:36 UTC by Paul Johnson
Modified: 2012-07-23 03:20 UTC (History)
1 user (show)

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


Attachments
Example of incorrect rendering (4.60 KB, application/octet-stream)
2012-03-23 12:36 UTC, Paul Johnson
Details
Example of incorrect rendering 2 (19.07 KB, application/octet-stream)
2012-03-23 12:37 UTC, Paul Johnson
Details
calendar screenshot (97.83 KB, image/png)
2012-03-23 13:17 UTC, Paul Johnson
Details
stakes screenshot (88.90 KB, image/png)
2012-03-23 13:18 UTC, Paul Johnson
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 UPSTREAM

Description Paul Johnson 2012-03-23 12:36:17 UTC
Created attachment 1568 [details]
Example of incorrect rendering

Files created using droiddraw that render correctly on the emulator and actual devices are failing to render correctly under the MD designer - widgets are missing from the screen or incorrectly placed.

Example files attached
Comment 1 Paul Johnson 2012-03-23 12:37:32 UTC
Created attachment 1569 [details]
Example of incorrect rendering 2
Comment 2 Lluis Sanchez 2012-03-23 13:06:21 UTC
It would be helpful if you could provide the whole Resources directory (you can use a private attachment). Or if not possible, could I see a screenshot of how the views look like in droid draw and the emulator? Thanks.
Comment 3 Paul Johnson 2012-03-23 13:17:20 UTC
Sorry about that - screenshots attached :)
Comment 4 Paul Johnson 2012-03-23 13:17:49 UTC
Created attachment 1570 [details]
calendar screenshot
Comment 5 Paul Johnson 2012-03-23 13:18:08 UTC
Created attachment 1571 [details]
stakes screenshot
Comment 6 Lluis Sanchez 2012-03-23 16:28:33 UTC
Are you sure all the image resources are correctly placed in the resources folder? I fear I would need the whole resources directory to track down this issue.
Comment 8 Lluis Sanchez 2012-03-26 12:05:28 UTC
The problem you are having is caused by the resource file names. 

Looks like the Android SDK requires resource file names to only have lowercase letters, numbers, underscores or dots. Also, resource lookup is case-sensitive. So a file name like Back_LazyE.png is not a valid resource name. I haven't been able to find a documentation source for this, but if you create an Eclipse project and add your resources to that project, you'll see that Eclipse explicitly complains about this.

Notice that this could be a limitation in the SDK, not in the runtime. This would explain why Mono for Android has no problem loading the resources. But the designer makes extensive use of SDK libraries to render the layout, and those libraries certainly have this limitation.

I'll do more research to find out more about this limitation, but for now the solution is to convert all resource file names to lowercase.
Comment 9 Lluis Sanchez 2012-07-23 03:20:48 UTC
Closing