Android : How to share layout+drawable resources between packages?

I'd like to be able to change the UI layout of an activity, based on a layout (+ it's own drawables) provided by another package (plugin theme). That's something really new to me, and I need some directions.

I already know that resources id cannot be shared, but assuming we managed to inflate the root view, we could retrieve the widgets by using the findViewWithTag().

Any ideas ?


resources can be shared in lib. See this link maybe now you can change your strategy

Need Your Help

Dashboard filter for an entity

sonata-admin symfony-sonata

I'm using SonataAdminBundle and I'm looking at trying to have a form filter on the dashboard.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.