I want to have a Library project where I'll have resources that are shared
across various other projects, Themes, Styles, Common images etc.
When I create a new Android Library Project, the template does not create
the Resources folder hierarchy. I tried creating the folders and files
inside them manually but then the Resource.Designer.cs does not get
generated.
I managed to get it to generate by adding
<AndroidApplication>true</AndroidApplication> in the csproj file but when I
try to use any of the resources in a project, the app crashes. Some of the
errors in logcat:

W/ResourceType(  627): Bad XML block: header size 18254 or total size
169478669
is larger than data size 3966
I/MonoDroid(  627): UNHANDLED EXCEPTION:
Android.Content.Res.Resources+NotFoundE
xception: Exception of type
'Android.Content.Res.Resources+NotFoundException' was thrown.
I/MonoDroid(  627): android.content.res.Resources$NotFoundException: File
res/dr
awable/icon.png from xml type layout resource ID #0x7f020000
I/MonoDroid(  627):     at
android.content.res.Resources.loadXmlResourceParser(R
esources.java:1912)
I/MonoDroid(  627):     at
android.content.res.Resources.loadXmlResourceParser(R
esources.java:1867)

I'm guessing there is no proper support of these things with Mono for
Android yet, is it something in the works? Whats the suggested way of
sharing Resources?




--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/Resources-from-a-Library-Project-tp4657828p4657828.html
Sent from the Mono for Android mailing list archive at Nabble.com.
_______________________________________________
Monodroid mailing list
[email protected]

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to