title: Android SeekBar customization
body: <p>I have to create SeekBar style for Android and can't figure out how to do this. Here is picture of the final result (which I'd like to reach).</p>
  
  <p><img src="https://i.stack.imgur.com/W92KX.png" alt="enter image description here"></p>
  
  <p>Let's start with SeekBar's background. I've tried to split it into three parts: left rounded end, repeatable piece of the middle part, and right rounded end. And them should be joined with next code (foo_background.xml).</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;clip xmlns:android="http://schemas.android.com/apk/res/android"
      android:clipOrientation="horizontal" &gt;
  
      &lt;bitmap
          android:antialias="true"
          android:dither="false"
          android:filter="false"
          android:gravity="left|center_vertical"
          android:src="@drawable/foo_left"
          android:tileMode="disabled" /&gt;
      &lt;bitmap
          android:antialias="true"
          android:dither="false"
          android:filter="false"
          android:gravity="center_vertical"
          android:src="@drawable/foo_middle"
          android:tileMode="repeat" /&gt;
      &lt;bitmap
          android:antialias="true"
          android:dither="false"
          android:filter="false"
          android:gravity="right|center_vertical"
          android:src="@drawable/foo_right"
          android:tileMode="disabled" /&gt;
  
  &lt;/clip&gt;
  </code></pre>
  
  <p>Which is used in SeekBar's background drawable file.</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="@android:id/background"&gt;
          &lt;clip android:drawable="@drawable/foo_background" /&gt;
      &lt;/item&gt;
      &lt;item android:id="@android:id/progress"&gt;
          &lt;clip android:drawable="@drawable/seek_bar_progress" /&gt;
      &lt;/item&gt;
  
  &lt;/layer-list&gt;
  </code></pre>
  
  <p>But as a result of all this stuff I see an empty (or better say I don't see it) SeekBar progress line.</p>
  
  <p>Does any know how to do this in right way?
  Thanks a lot for helping.</p>