Can the Android drawable directory contain subdirectories?

后端 未结 21 975
醉梦人生
醉梦人生 2020-11-22 04:13

In the Android SDK documentation, all of the examples used with the @drawable/my_image xml syntax directly address images that are stored in the res/drawable directory in my

21条回答
  •  遇见更好的自我
    2020-11-22 04:32

    Gradle with Android Studio could do it this way (link).

    It's in the paragraph "Configuring the Structure"

    sourceSets {
     main {
        java {
            srcDir 'src/java'
        }
        resources {
            srcDir 'src/resources'
        }
     }
    }
    

提交回复
热议问题