title: Android horizontal indeterminate progress bar lollipop
body: <p>I have implemented a horizontal indeterminate progress bar in my Android application. I am building and running the app on lollipop (v22), so using their styles.</p>
  
  <pre><code>&lt;ProgressBar
      android:id="@+id/progressBar1"
      style="?android:attr/progressBarStyleHorizontal"
      android:indeterminateOnly="true" 
      android:layout_width="15dp"
      android:layout_height="wrap_content" /&gt;
  </code></pre>
  
  <p>The height of the view appears to be the requested 15dp, but the height of the animating progress bar contained within seems to be a fixed height (~2dp). Is it possible to change the height of horizontal indeterminate progress bar (to be e.g. <code>match_parent</code> of the view)?</p>
  
  <p>I found that the style referenced is <code>android.R.styleable.ProgressBar_indeterminateOnly</code>. I believe this references a drawable called <code>progress_indeterminate_horizontal_material.xml</code> in <code>platforms/android-22/data/res/drawable</code>. This in turn references <code>vector_drawable_progress_indeterminate_horizontal.xml</code>:</p>
  
  <pre><code>&lt;vector xmlns:android="http://schemas.android.com/apk/res/android"
      android:height="10dp"
      android:width="360dp"
      android:viewportHeight="10"
      android:viewportWidth="360" &gt;
      &lt;group
          android:name="progress_group"
          android:translateX="180"
          android:translateY="5" &gt;
          &lt;path
              android:name="background_track"
              android:pathData="M -180.0,-1.0 l 360.0,0 l 0,2.0 l -360.0,0 Z"
              android:fillColor="?attr/colorControlActivated"
              android:fillAlpha="?android:attr/disabledAlpha"/&gt;
          &lt;group
              android:name="rect2_grp"
              android:translateX="-197.60001"
              android:scaleX="0.1" &gt;
              &lt;path
                  android:name="rect2"
                  android:pathData="M -144.0,-1.0 l 288.0,0 l 0,2.0 l -288.0,0 Z"
                  android:fillColor="?attr/colorControlActivated" /&gt;
          &lt;/group&gt;
          &lt;group
              android:name="rect1_grp"
              android:translateX="-522.59998"
              android:scaleX="0.1" &gt;
              &lt;path
                  android:name="rect1"
                  android:pathData="M -144.0,-1.0 l 288.0,0 l 0,2.0 l -288.0,0 Z"
                  android:fillColor="?attr/colorControlActivated" /&gt;
          &lt;/group&gt;
      &lt;/group&gt;
  &lt;/vector&gt;
  </code></pre>
  
  <p>I have added these and their requirements to my project and started playing with the vector, but so far I am unable to get the progress bar to appear the correct size.</p>
  
  <p>Adjusting the height, viewportHeight, translateY and pathData:</p>
  
  <pre><code>&lt;vector xmlns:android="http://schemas.android.com/apk/res/android"
      android:height="5dp"
      android:width="360dp"
      android:viewportHeight="5"
      android:viewportWidth="360" &gt;
      &lt;group
          android:name="progress_group"
          android:translateX="180"
          android:translateY="2.5" &gt;
          &lt;path
              android:name="background_track"
              android:pathData="M -180.0,-2.5 l 360.0,0 l 0,5.0 l -360.0,0 Z"
              android:fillColor="?attr/colorControlActivated"
              android:fillAlpha="?android:attr/disabledAlpha"/&gt;
          &lt;group
              android:name="rect2_grp"
              android:translateX="-197.60001"
              android:scaleX="0.1" &gt;
              &lt;path
                  android:name="rect2"
                  android:pathData="M -144.0,-2.5 l 288.0,0 l 0,5.0 l -288.0,0 Z"
                  android:fillColor="?attr/colorControlActivated" /&gt;
          &lt;/group&gt;
          &lt;group
              android:name="rect1_grp"
              android:translateX="-522.59998"
              android:scaleX="0.1" &gt;
              &lt;path
                  android:name="rect1"
                  android:pathData="M -144.0,-2.5 l 288.0,0 l 0,4.0 l -288.0,0 Z"
                  android:fillColor="?attr/colorControlActivated" /&gt;
          &lt;/group&gt;
      &lt;/group&gt;
  &lt;/vector&gt;
  </code></pre>
  
  <p>Looks about right in the preview, but the progress bar doesn't appear when built.</p>