title: gmail like Progress bar functionality
body: <p><img src="https://i.stack.imgur.com/jbSX9.png" alt="enter image description here">I am creating a gmail like progress bar functionality. There seems to be some space between the actionbar and the progress bar. </p>
  
  <p>Following is the code</p>
  
  <pre><code>&lt;android.support.v4.widget.DrawerLayout
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:id="@+id/drawer_layout"
  android:layout_width="match_parent"
  android:layout_height="match_parent"&gt;
  
  &lt;!-- As the main content view, the view below consumes the entire
       space available using match_parent in both dimensions. --&gt;
  &lt;FrameLayout
      android:id="@+id/content_frame"
      android:layout_width="match_parent"
      android:layout_height="match_parent" /&gt;
  
      &lt;ProgressBar
      android:id="@+id/progressBar1"
      style="?android:attr/progressBarStyleHorizontal"
      android:indeterminateOnly="true"
      android:layout_width="wrap_content"
      android:layout_height="?android:attr/actionBarSize" /&gt;
  
  &lt;ListView
      android:id="@+id/left_drawer"
      android:layout_width="240dp"
      android:layout_height="match_parent"
      android:layout_gravity="start"
      android:choiceMode="singleChoice"
      android:divider="@android:color/transparent"
      android:dividerHeight="0dp"
      android:background="#111"/&gt;
  &lt;/android.support.v4.widget.DrawerLayout&gt;
  </code></pre>