title: Linear layout overlapping another linear layout
body: <p>I have two <code>LinearLayouts</code> in a <code>RelativeLayout</code> the problem is that the top linear layout is overlapping the bottom one a little bit.I tried everything. Please Somebody help me.Below is my XML File
  Or tell me how to do it programmatically. Like subtracting height of one linear layout from another.</p>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent"&gt;
  
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:orientation="horizontal"
          android:weightSum="1"&gt;
  
          &lt;FrameLayout
              android:id="@+id/page_fragment"
              android:layout_width="150dp"
              android:layout_height="match_parent"
              android:background="@color/spinner_text_color" /&gt;
  
          &lt;FrameLayout
              android:id="@+id/detail_fragment"
              android:layout_width="wrap_content"
              android:layout_height="match_parent"
              android:background="@color/white_bg"
              android:layout_weight="1"&gt;&lt;/FrameLayout&gt;
      &lt;/LinearLayout&gt;
  
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_alignParentBottom="true"
          android:background="@color/spinner_text_color"&gt;
  
          &lt;Button
              android:id="@+id/filterResetButton"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_weight=".50"
              android:textColor="@color/white_bg"
              android:textAllCaps="false"
              android:background="@drawable/light_button_click"
              android:text="Reset All" /&gt;
  
          &lt;Button
              android:id="@+id/filterApplyButton"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_weight=".50"
              android:textAllCaps="false"
              android:background="@drawable/submit_order_click"
              android:textColor="@color/white_bg"
              android:text="Apply" /&gt;
  
      &lt;/LinearLayout&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>