whizzzkey
whizzzkey

Reputation: 946

Library module access to resources

I have project with simple following structure:

Project 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

Answers (1)

Zoe - Save the data dump
Zoe - Save the data dump

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

Related Questions