This is exactly the main idea behing Android Library Projects, to share code and resources among projects.
An Android library project is a development project that holds shared Android source code and resources. Other Android application projects can reference the library project and, at build time, include its compiled sources in their .apk files. Multiple application projects can reference the same library project and any single application project can reference multiple library projects.
See the details at Library Projects
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…