I ran into a wall with this, too, in normal android. I found it easier to
just pass a context and just new things up
On Wed, Aug 1, 2012 at 5:03 PM, Kirby <d...@adestis.de> wrote:

> Hi,
>
> I have an Android Library Project (in C# NOT Java!!!) created in order to
> build a custom control (which I can use in different projects). Of course
> this library contains Resources like layouts, drawables, strings, icons,
> etc.
>
> I realized that the Id created for the resources are only unique within the
> project. But when I include (reference) this library project in my main
> application project IDs are not unique anymore (I'm talking about the int
> values NOT the strings).
>
> Even if I fix that by manually changing the int constants in the
> automatically created Resource.Designer.cs (VERY ugly) I'm not able to
> inflate layout by id (Resource does not exist).
>
> So what am I doing wrong? What do I have to do in order to build a custom
> control (with resources) in a separate lib? Or is it not possible to create
> a separate lib having UI parts?
>
> Regards
>
> Kirby
>
>
>
>
>
> --
> View this message in context:
> http://mono-for-android.1047100.n5.nabble.com/Android-Library-Projects-and-Resources-tp5711111.html
> Sent from the Mono for Android mailing list archive at Nabble.com.
> _______________________________________________
> Monodroid mailing list
> Monodroid@lists.ximian.com
>
> UNSUBSCRIBE INFORMATION:
> http://lists.ximian.com/mailman/listinfo/monodroid
>



-- 
Extreme Knowledge is not something for which he programs a computer but for
which his computer is programming him.

-Wozniak
_______________________________________________
Monodroid mailing list
Monodroid@lists.ximian.com

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

Reply via email to