title: Android - Tinting ProgressBar on pre-Lollipop devices
body: <p>My app's minimum API-level is 19 (KitKat), and contains a layout with a horizontal <code>ProgressBar</code>. I'm using <code>android:progressTint</code> attribute to tint the bar to a custom color. It works pretty well on Lollipop (API 21) and above, but below (for example on API 19) it doesn't; it shows up in a different color. The reason is that this attribute </p>
  
  <blockquote>
    <p>is only used in API level 21 and higher</p>
  </blockquote>
  
  <p>as Android Studio states.</p>
  
  <p>So I'm wondering what can be a good alternative for tinting the <code>ProgressBar</code> on pre-Lollipop devices, too. Can it be made inside the layout file with XML? Or should this be done on a different way?</p>
  
  <hr>
  
  <p><strong>EDIT #1:</strong> My ProgressBar is used to show concrete values in percents, not for indicating that my layout is loading. I want to make this clear because after trying what Kuldeep Kulkarni wrote below, my bar looked like a material loading indicator (of course on the Lollipop device, not any visible result on KitKat device).</p>