Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I make an Android library which contains resource files?

Tags:

java

android

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?

like image 534
Takayuki Sato Avatar asked Aug 27 '12 03:08

Takayuki Sato


1 Answers

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

like image 115
Diego Torres Milano Avatar answered Sep 30 '22 03:09

Diego Torres Milano