I'm working on an Android project using Eclipse. The project contains multiple modules connecting to a central core, and it would make sense to organise them into subpackages, e.g.
com.example.myapp
-- containing core classes and activities
com.example.myapp.module1
-- classes and activities pertaining to module 1
com.example.myapp.module2
-- classes and activities pertaining to module 2
and so on. Since each module cannot work independently, everything is included in a single Eclipse project.
Now, it would be great to organise the resources into separate packages as well. At the moment all of my layouts and drawables are precompiled into com.example.myapp.R
.
Is there any way to organise the project so that Eclipse would automatically put resources for module 1 into com.example.myapp.module1.R
etc.?