title: horizontal ProgressBar is not full parent width
body: <p>I am adding progress bar to my application AppBarLayout:</p>
  
  <pre><code>&lt;android.support.design.widget.AppBarLayout
      android:id="@+id/appbar"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:theme="?attr/appBarLayoutTheme"&gt;
  
      &lt;android.support.v7.widget.Toolbar
          android:id="@+id/toolbar"
          android:layout_width="match_parent"
          android:layout_height="?attr/actionBarSize"
          android:background="?attr/colorPrimary"
          app:popupTheme="?attr/toolbarPopupTheme"/&gt;
  
      &lt;ProgressBar
          style="?android:progressBarStyleHorizontal"
          android:id="@+id/progress_loader"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_marginBottom="-8dp"
          android:indeterminateTint="@color/greyishWhite"
          android:layout_marginTop="-9dp"
          android:maxWidth="2000dp"
          android:indeterminateOnly="true"/&gt;
  
  &lt;/android.support.design.widget.AppBarLayout&gt;
  </code></pre>
  
  <p>Everything looks ok in portrait mode:</p>
  
  <p><a href="https://i.stack.imgur.com/JgKnx.png" rel="noreferrer"><img src="https://i.stack.imgur.com/JgKnx.png" alt="enter image description here"></a></p>
  
  <p>But on landscape mode it doesn't take full parent width:</p>
  
  <p><a href="https://i.stack.imgur.com/JW2mI.png" rel="noreferrer"><img src="https://i.stack.imgur.com/JW2mI.png" alt="enter image description here"></a></p>
  
  <p>How can I force ProgressBar take full with at all times.</p>
  
  <p><strong>ANSWER:</strong> </p>
  
  <p>Thanks @Mahavir Jain for guiding to the right path:</p>
  
  <p>at the end all needed to do was change </p>
  
  <pre><code>android:indeterminateOnly="true"
  </code></pre>
  
  <p>to </p>
  
  <pre><code>android:indeterminate="true"
  </code></pre>