title: How to create a button on top of ImageView and align it to the bottom of the screen?
body: <p>I want to have a button on top of <code>ImageView</code> using my <code>xml</code> file. When I run this code, the button appears to the left hand side of the screen on top of other buttons.</p>
  
  <p>Does anyone have any idea on what to do to have a button on TOP of <code>ImageView</code> but at the bottom of the screen.</p>
  
  <p>So far I have the following:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
     ......
  
      &lt;ImageView
          android:id="@+id/filter_image_view"
          android:layout_width="fill_parent"
          android:layout_height="fill_parent"
          android:layout_toRightOf="@id/filter_linear_layout" /&gt;
  
  //this is the button I want to have on top of the ImageView
      &lt;Button
          android:id="@+id/display_RGB"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_weight="1"
          android:background="@drawable/button_blue_red_transluscent"
          android:text="@string/display_RGB"
          android:textColor="@android:color/white" /&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>Not too fussy as long as its somewhere at the bottom of the screen but in the center.
  <img src="https://i.stack.imgur.com/nDHw8.jpg" alt="enter image description here"></p>