Creating a subfolder in the drawable Android Studio [duplicate]

0

I want to create a subfolder in drawable because I am using many images in my application and would like to organize them. How do I create and leave the folder visible to be used?

    
asked by anonymous 07.06.2017 / 02:40

1 answer

0

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

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

However, the names of the files in these folders can not be the same, which means that you still have to use the nomenclature of red_carts.png and red_computers.png

    
07.06.2017 / 02:59