在我的应用程序中,我有2 种口味,我想res/color
为每种口味更改应用程序的颜色 () !
请在下面的build.gradle
文件中查看我的代码:
flavorDimensions "default"
productFlavors {
app1 {
applicationId "com.app.myApp1"
resValue "string", "app_name", "App 1"
manifestPlaceholders = [
appIcon: "@drawable/logo_app1"
]
}
app2 {
applicationId "com.app.myApp2"
resValue "string", "app_name", "App 2"
manifestPlaceholders = [
appIcon: "@drawable/logo_app2"
]
}
}
我不知道如何color.xml
为每种口味设置!
这怎么可能?