title: How do I create overlay button in my Android layout
body: <p>I want to create a button which will overlay between 2 layouts.
  I am using Linear Layout and added appropriate weight to it.
  Have attached a screen shot for reference.</p>
  
  <p><img src="https://i.stack.imgur.com/Bj6NV.jpg" alt="enter image description here"></p>
  
  <p>Here is my XML
  tag.xml : </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:gravity="center"
  android:orientation="vertical"
  android:weightSum="100" &gt;
  
  &lt;RelativeLayout
      android:layout_width="match_parent"
      android:layout_height="0dp"
      android:layout_weight="30"
      android:background="@color/greyColor"
      android:gravity="center" &gt;
  
      &lt;ImageView
          android:id="@+id/ximgvwCamera"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:background="@drawable/camera_big" /&gt;
  &lt;/RelativeLayout&gt;
  
  &lt;ScrollView
      android:layout_width="match_parent"
      android:layout_height="0dp"
      android:layout_weight="70"
      android:background="@android:color/white" &gt;
  
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="0dp"
          android:background="@android:color/white"
          android:gravity="center_horizontal"
          android:orientation="vertical" &gt;
  
          &lt;TextView
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_gravity="center_horizontal"
              android:layout_margin="5dp"
              android:padding="5dp"
              android:text="@string/strQ1"
              android:textAppearance="@android:style/TextAppearance.Medium"
              android:textColor="@android:color/darker_gray" /&gt;
      &lt;/LinearLayout&gt;
  &lt;/ScrollView&gt;
  </code></pre>
  
  <p></p>
  
  <p>Please help me in this.
  Thanks in advance!</p>