title: Android button elevation shadow not working
body: <p>I am trying to make a button that has a shadow using elevation with a background image being my sign in with gmail png. The button is contained within a relative layout. The elevation won't show no matter what I try to do. I tried solutions from other forum questions and none worked.</p>
  
  <p>Here is my code for the button</p>
  
  <pre><code>&lt;Button
      android:id="@+id/google"
      android:layout_width="270dp"
      android:layout_height="38dp"
      android:layout_marginTop="30dp"
      android:layout_centerHorizontal="true"
      android:background="@drawable/google"
      android:elevation="10dp"
      android:layout_below="@id/slogan"/&gt;
  </code></pre>
  
  <p>The google drawable is a png image that I exported from Adobe XD.
  Could someone please give me a pointer on what I am doing wrong? Thanks.</p>
  
  <p><strong>Additionally</strong>, I realize that if I set the background of the button to android:color/white the shadow appears. So I think the issue is with the png drawable? Does elevation not work with png images? Is there a workaround?</p>