title: Modifying the color of an android drawable
body: <p>I would like to be able to use the same drawable to represent both:</p>
  
  <p><img src="https://i.stack.imgur.com/81xak.png" alt="Blue icon"> and <img src="https://i.stack.imgur.com/nQ1ez.png" alt="Red icon"> </p>
  
  <p>as the same drawable, and re-color the drawable based on some programmatic values, so that the end user could re-theme the interface. </p>
  
  <p>What is the best way to do this? I have tried (and reused the icons from) <a href="https://stackoverflow.com/questions/4354939/understanding-the-use-of-colormatrix-and-colormatrixcolorfilter-to-modify-a-draw">this previous S.O. question</a> but I can't represent the change as a simple change of hue, since it also varies in saturation and value..</p>
  
  <p>Is it best to store the icon as all white in the area I want changed? or transparent? or some other solid color?</p>
  
  <p>Is there some method that allows you to figure out the matrix based on the difference between Color of red_icon and Color of blue_icon?</p>