Reputation: 946
I have project with simple following structure:
As you can see the mylibrary module has auto generated a res folder. How I can get acess from some mylibrary code to resources? Does libraries have their own context? What mechanism is used to acсess resources that are located in library res folder from it's code? Is it possible?
Upvotes: 2
Views: 657
Reputation: 28228
Library resources are merged with the app resources (example: AppCompat) when compiled into the APK.
Just access it like any other resource.
Upvotes: 2