title: Horizontal progress bar is not visible if placed above toolbar (For Android 5)
body: <p>I tried to place horizontal progress bar on the top of toolbar by having the following XML.</p>
  
  <h2>my_activity.xml</h2>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/layout_main"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:orientation="vertical"&gt;
  
      &lt;FrameLayout
          android:layout_width="match_parent"
          android:layout_height="wrap_content"&gt;
  
          &lt;!-- Toolbar --&gt;
          &lt;include layout="@layout/toolbar"/&gt;
  
          &lt;!-- http://stackoverflow.com/questions/14171471/remove-vertical-padding-from-horizontal-progressbar --&gt;
          &lt;ProgressBar
              style="?android:attr/progressBarStyleHorizontal"
              android:layout_width="match_parent"
              android:layout_height="8dp"
              android:id="@+id/progress_bar"
              android:layout_gravity="top"
  
              android:layout_marginBottom="0dp"
              android:layout_marginTop="-3dp"
  
              android:progress="2000"
              android:max="10000" /&gt;
  
      &lt;/FrameLayout&gt;
  
      &lt;FrameLayout
          android:id="@+id/content"
          android:layout_width="match_parent"
          android:layout_height="match_parent" &gt;
  
          &lt;ProgressBar
              style="?android:attr/progressBarStyleHorizontal"
              android:layout_width="match_parent"
              android:layout_height="8dp"
              android:id="@+id/progress_bar2"
              android:layout_gravity="top"
  
              android:layout_marginBottom="0dp"
              android:layout_marginTop="-3dp"
  
              android:progress="2000"
              android:max="10000" /&gt;
  
      &lt;/FrameLayout&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <h2>toolbar.xml</h2>
  
  <pre><code>&lt;android.support.v7.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      android:id="@+id/toolbar"
      android:layout_height="wrap_content"
      android:layout_width="match_parent"
      android:minHeight="?attr/actionBarSize"
      android:background="?attr/colorPrimary"
      android:elevation="4dp"
      app:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
      app:popupTheme="@style/ThemeOverlay.AppCompat.Light" &gt;
  
      &lt;!-- android:elevation="4dp" is used due to http://www.google.com/design/spec/what-is-material/elevation-shadows.html#elevation-shadows-elevation-android- --&gt;
  
  &lt;/android.support.v7.widget.Toolbar&gt;
  </code></pre>
  
  <p>This works absolutely fine under Android 4+. Here's the screenshot for Android 4+</p>
  
  <p><a href="https://i.stack.imgur.com/BoMzi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BoMzi.png" alt="enter image description here"></a></p>
  
  <p>However, when it comes to Android 5+, the horizontal progress bar is not visible on the top of toolbar.</p>
  
  <p><a href="https://i.stack.imgur.com/0Sgic.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0Sgic.png" alt="enter image description here"></a></p>
  
  <p>If I remove line</p>
  
  <pre><code>&lt;include layout="@layout/toolbar"/&gt;
  </code></pre>
  
  <p>I will get the following screenshot in Android 5+</p>
  
  <p><a href="https://i.stack.imgur.com/7V0TR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7V0TR.png" alt="enter image description here"></a></p>
  
  <p>It seems that the top progress bar is blocked by toolbar? But, I thought within <code>FrameLayout</code>, the progress bar is having higher z-order than toolbar?</p>
  
  <p>May I know, how I can make horizontal progress bar visible if placed above toolbar, in Android 5+</p>