title: Android 5.0 - ProgressBar cannot be displayed over a Button
body: <p>I think the title is pretty explicit about my problem... So here is my layout :</p>
  <pre><code>            &lt;RelativeLayout
                  android:layout_width=&quot;wrap_content&quot;
                  android:layout_height=&quot;wrap_content&quot;&gt;
  
                  &lt;Button
                      android:id=&quot;@+id/button_action&quot;
                      android:layout_width=&quot;match_parent&quot;
                      android:layout_height=&quot;wrap_content&quot;
                      android:text=&quot;Login&quot; /&gt;
  
                  &lt;ProgressBar
                      android:id=&quot;@+id/progress_bar&quot;
                      android:layout_width=&quot;50dp&quot;
                      android:layout_height=&quot;50dp&quot;
                      android:layout_centerInParent=&quot;true&quot;/&gt;
  
              &lt;/RelativeLayout&gt;
  </code></pre>
  <p>On android SDKs &lt; 21, no problem, the ProgressBar is correctly displayed over the Button and centered in the Button. But on Android 5.0, the ProgressBar is displayed <strong>behind</strong> the Button.</p>
  <p>So you can see it's correctly positionned it when you activate the option &quot;Show layout bounds&quot; in Developer Options settings, but you can't see anything on the screen without that option.</p>
  <p>Would anybody know how to fix this? I guess it's a matter of <strong>elevation</strong> recently introduced, but I really don't know how to take care of it.
  For the record, I'm using the recently released Theme.AppCompat style from the support.v7.</p>
  <p><strong>EDIT:</strong></p>
  <p>I also tried to apply <code>setElevation(0)</code> and <code>setTranslationY(0)</code> to the Button programmatically but it didn't change anything. So I wonder if it has to deal with the elevation.</p>