title: Android get color as string value
body: <p>If i defined a color in resources</p>
  
  <pre><code>&lt;resources&gt;
      &lt;color name="someColor"&gt;#123456&lt;/color&gt;
  &lt;/resources&gt;
  </code></pre>
  
  <p>it's possible to set color by its id, like</p>
  
  <pre><code>view.setTextColor(R.color.someColor);
  </code></pre>
  
  <p>Is it also possible to get color string value from colors.xml?</p>
  
  <p>Something like </p>
  
  <pre><code>colorStr = getColor(R.color.someColor);
  // -&gt; colorStr = "#123456"
  </code></pre>
  
  <p>If yes, can anybody give an example?</p>
  
  <p>Thank you</p>