[mono-android] Resource Question

Jonathan Pryor jonp at xamarin.com
Wed Nov 30 19:55:36 EST 2011


On Nov 16, 2011, at 5:28 PM, Aaron Knabb wrote:
> So I have a library responsible for switching from activity to activity within my application. Thing is, I can't figure out a way to define animations for those activities within that library. If I try to use xml to define them, I cannot create a resources directory in a library. And, the only way I know how to set an animation is through calling Activity.OverridePendingTransition which only takes resource IDs.

Until we get proper resource support for Libraries, you'll need to "design around" the issue -- pass the relevant resource IDs to your Library type so that it can use the appropriate IDs, and bundle all resources for all projects into your app project.

 - Jon



More information about the Monodroid mailing list