Makrand wrote:
> I have one proper library project, it contais all resources and class
> files, this project contais all theme related images, I am sharing my
> library project for creating new Projects, all works fine.
>
> But when I want to change app theme related images, I need to update my
> library project images, but my library project already shared with some
> other projects so I dont want to touch it.
>
> There is one more way that I can add all new set of image in my New
> project but its increasing my project size and unnecessary I am shipping
> two sets on images.
>
> Is there any way to share resource folder independently with project? so
> depends on requirement I can share my resource folder with respected
> project.
>
> So it will be like this
>
> Library Project
>
> |
>
> |__ class files
>
> |
>
> |__ resource folder(contais all drawables and layouts)
>
> Can I choose specific resource folder at compile time ?
>
I am not an expert on library projects, or even Android projects generally,
but that said, I offer that
the point of libraries is that they are common to multiple projects. You
can't have both common
to multiple projects and specific particularly to each at once in the same
library.
If your resources are particular to a particular project, they belong in
that project, not the library.
If your resources are common to some subset of projects that use the main
library, would it work
for you to create multiple libraries? Let's say you have a universe of
projects U:{p0, p1, ..., pN}
for which you need the main library, call it "MainLib". Let's say you have
subsets of that universe,
A, B, C, etc., such that all projects in each subset need some common
resources, but not the
same ones as those used by other subsets. So you have resources {rA0, rA1,
rA2, ..., rAm} for
the projects in A, {rB0, rB1, ..., rBn} for projects in B, and so on. You
could create libraries
"ALib", "BLib", ..., to support those subsets. So a project like "rB2"
would pull in libraries
"MainLib" and "BLib".
Something like that seems like it could become a nightmare quickly.
--
Lew
--
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