I want to make an Android library which contains drawable resource files. But I wonder if the library's resource IDs might conflict with the application resouce IDs. Is it possible to make such a library?
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With