Check Mobile App
Read now

Organising android resources directories

Save

It becomes difficult to maintain and manage resources as the project grows.

How can we manage resources?

We can easily manage resources like java and Kotlin files. We can group our resources for adding new features or modules. By default, your resources are located in module-name/src/source-set-name/res/.

For example, resources for your module’s main source set are in src/main/res/ and resources for the debug source set are in src/debug/res/. However, you can change these paths to any other location (relative to the build.gradle file) with the res.srcDirs property in the sourceSets {} block.

Let’s suppose we want to add new features in a core project but don’t want to mess with the core.

I hope this blog is useful to you. Thanks for reading.

. . .

Leave a Comment

Your email address will not be published. Required fields are marked*


Be the first to comment.

css.php

Today I am sure that I chose the right company, the app is very good and the service is very good, distance is not a problem. They always kept in touch by sending information. The staff is very competent, efficient. Mobikul for me is being the ideal partner to develop my app. I recommend.

Cristiano

Cristiano

Talk to Sales

Global

Live Chat
Start a Project

    Message Sent!

    If you have more details or questions, you can reply to the received confirmation email.

    Back to Home