title: How to set text color in code to a android widget?
body: <p>I have an android widget that updates and chose a random int from 4 numbers, if the number equals 1 i want it to set the text color to a specific color i tried:</p>
  
  <pre><code>if (colornumb == 1)
          {
          view.setTextColor(R.id.text1, Color.rgb(200, 0, 0));
          }
  </code></pre>
  
  <p>and it don't work i get white not red.
  I will appreciate a good answer, Thanks.</p>
  
  <p><strong>UPDATE:</strong> I solved the problem thanks for your answers.(It did not update because i had a configure activity. It just copy/paste the color changer code in the configure activity and updated the views from there.)</p>