Android – sharing resources between projects
I have many projects with the same activities, including the same paintable resources. In each project, I copy SRC java files, layout XML files and paintable images. Ideally, I want to have a set of these and share them with other projects in some way. Sharing folders seems to be the way to go, but after setting up, I can't think of how to reference linked files
Let's say that for simplicity, I have two projects, a source project, which contains java code files, layout files and a drawable folder containing all the images I need. The second project let's call it the destination
In the target, I create a link folder named "link" to the drawable folder in the source, and then I can view it in Explorer. In my layout XML, how do I reference the "link" folder and then the images of the SRC of the image view?
Can I link my active java source files and XML files in the same way?
If there is another or better way to achieve this, I would appreciate some instructions
thank you
resolvent:
I think you should package your common code and resources into a library and use it in all your projects