title: Change progressbar color through CODE ONLY in Android
body: <p>I have a progressBar using the ProgressBar class.</p>
  
  <p>Just doing this: </p>
  
  <pre><code>progressBar = new ProgressBar(this, null, android.R.attr.progressBarStyleHorizontal);
  </code></pre>
  
  <p>I need to change the color of that one, using input value like so:</p>
  
  <pre><code>int color = "red in RGB value".progressBar.setColor(color)
  </code></pre>
  
  <p>or something like that...</p>
  
  <p>I can't use an <strong>XML layout</strong> because the progress bar is customizable for users.</p>