title: Custom ProgressBar in Android using PNG
body: <p>How do I create a custom progressbar in Android that has a drawable for the progress and background items?</p>
  
  <p>All examples I saw were gradients, like this:</p>
  
  <pre><code>&lt;layer-list xmlns:android="http://schemas.android.com/apk/res/android"&gt;
  
  &lt;!-- Define the background properties like color etc --&gt;
      &lt;item android:id="@android:id/background"&gt;
          &lt;shape&gt;
              &lt;gradient
                      android:startColor="#000001"
                      android:centerColor="#0b131e"
                      android:centerY="1.0"
                      android:endColor="#0d1522"
                      android:angle="270"
              /&gt;
          &lt;/shape&gt;
      &lt;/item&gt;
  
   &lt;!-- Define the progress properties like start color, end color etc --&gt;
      &lt;item android:id="@android:id/progress"&gt;
          &lt;clip&gt;
              &lt;shape&gt;
                  &lt;gradient
                      android:startColor="#007A00"
                      android:centerColor="#007A00"
                      android:centerY="1.0"
                      android:endColor="#06101d"
                      android:angle="270"
                  /&gt;
              &lt;/shape&gt;
          &lt;/clip&gt;
      &lt;/item&gt;
  
  &lt;/layer-list&gt;
  </code></pre>
  
  <p>Instead of gradient, I want to use an image, a png or a drawable.</p>