Creating a subfolder in drawable Android Studio

Asked

Viewed 600 times

0

I want to create a subfolder in drawable because I am using many images in my application and I would like to organize them. How to create and make the folder visible for use?

1 answer

0

You can use Android Studio with Gradle to have multiple feature directories, in app/build.Radle:

android {
    ....
    android.sourceSets {
        main.res.srcDirs = ['src/main/pastaextra_carros', 'src/main/res']
    }
    ....
}

However, the filenames of these folders cannot be the same, which means that you still have to use the nomenclature of carros_red.png and computations_red.png

Browser other questions tagged

You are not signed in. Login or sign up in order to post.