Android library using the main resources of the project

I am creating a library for Android projects.

Activity is declared in the library project, as it will be reused in different projects. This activity uses project-specific images. I added these images to the main project.

How can I access resources from the main project in the library?

+3
source share
1 answer

Put a copy of all relevant resources in the library. This is completely legal. If you want to override them in a real application, you can. If identifiers collide, the final product will use resources from the application.

EDIT: - . Windows mklink ; * nix, ln. , , .

+11

Source: https://habr.com/ru/post/1771795/


All Articles