title: How to change application colors with Flavors in Android
body: <p>In my application, I have <strong>2 flavors</strong>, and I want to change the application's color (<code>res/color</code>) for each of this <strong>flavors</strong>!<br></p>
  <p>Please see my code below at <code>build.gradle</code> file :</p>
  <pre><code>flavorDimensions &quot;default&quot;
  productFlavors {
      app1 {
          applicationId &quot;com.app.myApp1&quot;
          resValue &quot;string&quot;, &quot;app_name&quot;, &quot;App 1&quot;
          manifestPlaceholders = [
                  appIcon: &quot;@drawable/logo_app1&quot;
          ]
      }
      app2 {
          applicationId &quot;com.app.myApp2&quot;
          resValue &quot;string&quot;, &quot;app_name&quot;, &quot;App 2&quot;
          manifestPlaceholders = [
                  appIcon: &quot;@drawable/logo_app2&quot;
          ]
      }
  }
  </code></pre>
  <p>I don't know on setting the <code>color.xml</code> for each of this <strong>flavors</strong>!<br></p>
  <p>How can this be possible?</p>