Monday, December 13, 2010

[android-developers] Re: Multiple resources for application

If its just the aesthetic elements changing (text, images, etc) then the obvious answer is to try and use a Theme. You should be able to apply it to the entire project.

Also, using libs is another way to handle this, however they don't seem to handle resources all that well (at least in Eclipse).
What I've started to experiment with recently is to have a library project that includes UI elements and other resources. In order to find the resource relative tot he parent project, I provide a matching interface that goes with the component that can return the correct resources for a particular atribute. I've just started trying to use this method, so I don't know it will work in all situations. The idea is that I can hide the R class from the lib component.
So, your main application would go into a single project tagged as a library project. The individual customer projects would contain the minimum needed to skin the code.


- Brill Pappin

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate