title: How to automatically change drawables depending on a flavor?
body: <p>I'm working on a really messy app and first time with flavors. App has like 4,5 flavors all with identical background colors, drawables, etc. Only logo is different.</p>
  
  <p>Now I have to make a new flavor with completely different layout. Background color should be yellow instead of grey and drawable images should be black instead of white. The problem is, I have like 100 different white images. Is there a way I can change them to black automatically? (designer can redraw them or whatever to be black and I can put them in drawable folder of that flavor) Or I would have to programmatically check if new flavor is used then call setDrawable(newBlackImage) on every widget that uses white drawable?  That seems like a very complicated way to do since all drawables are set via XML layout..</p>
  
  <p>The way they've been using flavors was creating resource bool file and then check in code if some key has value true/false then hide/show some things... So I assume I should do something similar with this, or no?</p>
  
  <p>This is what the project structure for one of my flavors looks like:</p>
  
  <p><a href="https://i.stack.imgur.com/i3WAR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/i3WAR.png" alt="enter image description here"></a></p>
  
  <p>As you can see, every flavor only has different launcher and login screen icons. Also each has their own arrays, bools and strings resource files. But all of them share same layout resources and drawables with white icons.</p>