title: How can I set a custom seekbar's ProgressDrawable size to be smaller than the ProgressBackground
body: <p>I have a custom <code>seekbar</code> that's not quite working.</p>
  
  <p>I want the <code>seekbar</code> to look like this:</p>
  
  <p><a href="https://i.stack.imgur.com/dECUR.png" rel="noreferrer"><img src="https://i.stack.imgur.com/dECUR.png" alt="Notice the progress bar is &#39;skinnier&#39; than the background"></a></p>
  
  <p>But this is as close as I have been able to get</p>
  
  <p><a href="https://i.stack.imgur.com/s0MFx.png" rel="noreferrer"><img src="https://i.stack.imgur.com/s0MFx.png" alt="The progress bar and background are the same size"></a></p>
  
  <p>Ignoring the slight coloring and size issues, the problem I'm having is with the green <code>progress</code> size. Is there some way to make this smaller than the background? I've tried <code>size</code> and <code>padding</code> tags in the <code>XML</code>, and even tried fiddling with two rectangles on top of each other with clip <code>gravity</code>, but no luck yet.</p>
  
  <p>Here is my <code>Seekbar</code> drawable</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;shape android:shape="rectangle"&gt;
              &lt;corners android:radius="20dp" /&gt;
              &lt;solid android:color="@color/fofo_grey" /&gt;
  
          &lt;/shape&gt;
      &lt;/item&gt;
  
      &lt;item android:id="@android:id/progress"&gt;
  
          &lt;clip&gt;
              &lt;shape android:shape="rectangle"&gt;
                  &lt;corners android:radius="20dp" /&gt;
                    &lt;solid android:color="@color/signup_green" /&gt;
              &lt;/shape&gt;
      &lt;/clip&gt;
      &lt;/item&gt;
  
  &lt;/layer-list&gt;  
  </code></pre>
  
  <p>And the Seekbar in the layout fragment</p>
  
  <pre><code>&lt;SeekBar
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:id="@+id/seekBar"
      android:layout_below="@+id/textView6"
      android:layout_centerHorizontal="true"
      android:splitTrack="false"
      android:progressDrawable="@drawable/custom_seekbar"
      android:thumb="@drawable/thumb_seekbar"
      android:max="100"
      android:progress="50"
      android:indeterminate="false" /&gt;
  </code></pre>