title: Android: Custom seekbar progress drawable is rendered incorrectly
body: <p>I intend to make a custom seekbar, with my own set of images for the background and progress drawables. I've made 2 9-patch images, one each for the background and progress drawables. Here is the code I am using for the progressDrawable:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;layer-list xmlns:android="http://schemas.android.com/apk/res/android" &gt;
  
      &lt;item android:id="@+id/background"
          android:drawable="@drawable/experience_seekbar_background" /&gt;
  
      &lt;item android:id="@+id/progress"&gt;
          &lt;clip
              android:clipOrientation="horizontal"
              android:gravity="left|top"
              android:drawable="@drawable/experience_seekbar_progress" /&gt;
      &lt;/item&gt;
  &lt;/layer-list&gt;
  </code></pre>
  
  <p>Also, here is the xml definition of my seekbar:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:orientation="vertical"
      android:padding="5dp" &gt;
  
      &lt;SeekBar
          android:id="@+id/experienceSeekBar"
          android:layout_width="match_parent"
          android:layout_height="100dp"
          android:max="2"
          android:progress="1"
          android:progressDrawable="@drawable/experience_seekbar" /&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>The problem is, the progress portion of the drawable is drawn below the background portion, instead of directly overlapping it.</p>
  
  <p>Expected/Desired: (<a href="http://i.imgur.com/C27dQZK.png" rel="nofollow">http://i.imgur.com/C27dQZK.png</a>)</p>
  
  <p>Actual Output: (<a href="http://i.imgur.com/ftNlMMI.png" rel="nofollow">http://i.imgur.com/ftNlMMI.png</a>)</p>
  
  <p>Having gone through tens of custom seekbar tutorials, I am still stuck at what could I possibly be doing wrong here. It might be something very trivial, but I am just not able to spot it.</p>