title: How to set paint.setColor(R.color.white)
body: <p>I have a custom View that uses Paint and Canvas to draw objects. My question is how to set:</p>
  
  <pre><code>int color = R.color.white;
  paint.setColor(color);
  </code></pre>
  
  <p>from my /res/valuse/color.xml which includes resources like</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;resources&gt;
      &lt;color name="white"&gt;#FFFFFF&lt;/color&gt;
      &lt;color name="black"&gt;#000000&lt;/color&gt;
      ...
  &lt;/resources&gt;
  </code></pre>