title: ImageView on top of Button
body: <p>I'm trying to put a small ImageView on top of a button, but somehow it stays under it. I don't understand why as this sort of layout work perfectly with other views.</p>
  
  <pre><code> &lt;RelativeLayout
              android:layout_width="match_parent"
              android:layout_height="wrap_content"&gt;
              &lt;Button
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:background="@color/background_white_clickable"
                  android:text="@string/book_now"
                  android:id="@+id/but_book_now"
                   /&gt;
  
              &lt;ImageView
                  android:layout_width="35dp"
                  android:layout_height="35dp"
                  android:id="@+id/img_bookmark"
                  android:src="@drawable/ic_action_bookmark_full"
                  android:layout_marginRight="15dp"
                  android:layout_marginEnd="15dp"
                  android:layout_alignParentTop="true"
                  android:layout_alignParentRight="true"
                  android:layout_alignParentEnd="true" /&gt;
  
          &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>I've tried with different background for the button, but the image can be seen only when it is transparent. I also tried to replace the ImageView with a colored View, still doesn't work.</p>
  
  <p>Any idea? Thx</p>
  
  <p>EDIT:</p>
  
  <p>There is a confusion in answers I get, I mean to make the ImageView on top of the Button in its Z-order, not y-axis.</p>
  
  <p>EDIT 2 :</p>
  
  <p>I don't want to use an image button, the image is just a "pin" on the button that will appear/disappear.
  I don't want to use a drawable on the button, I need to place it where I want exactly.
  Using FrameLayout instead of RelativeLayout doesn't change anything.
  Using imgView.bringToFront() doesn't work.</p>
  
  <p>EDIT 3 :</p>
  
  <p>The problem doesn't appear on device before Lollipop. On KitKat, the layout works as intended.</p>