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?

Context, and then you can access any resources. Just passContextfrom the app to the library