Its got positives and negatives. Bear in mind that the resources in android.R are not overridable.
There was an example given earlier where things get messy (when library nesting is allowed): If library A depends on library B. Project C depends on both A and B then things get a little confusing when A overrides some resources in B: i.e. C would see some B resources where A might be expected. What happens when a project defines a java class with the same fully-qualified name as in one of its libraries? Short answer: exception (in Eclipse) On 26 May 2010 21:14, Andrew Brampton <[email protected]> wrote: > On 26 May 2010 19:58, Mark Carter <[email protected]> wrote: > > On 26 May 2010 20:33, Xavier Ducrohet <[email protected]> wrote: > >> > >> The problem is not so much generating the R class, it's making sure > >> the library project is compiled with this "composite" R class made of > >> all the projects (main + libs). > > > > Is it essential for the library project to be compiled with the composite > R > > class? > > At each level in the library hierarchy, the R class would only include > the > > resources of its own project and any descendant libraries. You could > enforce > > that no two projects in the hierarchy define the same resource (otherwise > > give a compiler error). > > > > By compiling the library with the composite R you are allowing your > application to override a resource used by the library. Which I think > is a very good thing. > > Andrew > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

