title: Linear layout inside Frame Layout
body: <p>I have the following code in Android Studio in which I have two Linear Layouts inside a Frame layout. However, the buttons in both layout map on top of each other. Is it possible to have the two linear layouts (including the buttons) placed next to each other vertically rather than being mapped on top of peach other?</p>
  
  <pre><code>&lt;FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:tools="http://schemas.android.com/tools"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:orientation="vertical"
  android:background="#FFFFFF"
  tools:context="com.dji.GSDemo.GoogleMap.MainActivity"&gt;
  
  
  &lt;fragment
      android:id="@+id/map"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      class="com.google.android.gms.maps.SupportMapFragment" /&gt;
  
  &lt;FrameLayout
      android:id="@+id/fram_map"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent" &gt;
  
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:orientation="horizontal"&gt;
          &lt;Button
              android:id="@+id/locate"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:text="Locate"
              android:layout_weight="1"/&gt;
          &lt;Button
              android:id="@+id/add"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:text="Add"
              android:layout_weight="1"/&gt;
          &lt;Button
              android:id="@+id/clear"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:text="Clear"
              android:layout_weight="1"/&gt;
  
          &lt;Button
              android:id="@+id/btn_draw_State"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:text="Free Draw" /&gt;
  
      &lt;/LinearLayout&gt;
  
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:orientation="horizontal"&gt;
          &lt;Button
              android:id="@+id/config"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:text="Config"
              android:layout_weight="0.9"/&gt;
          &lt;Button
              android:id="@+id/upload"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:text="Upload"
              android:layout_weight="0.9"/&gt;
          &lt;Button
              android:id="@+id/start"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:text="Start"
              android:layout_weight="1"/&gt;
          &lt;Button
              android:id="@+id/stop"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:text="Stop"
              android:layout_weight="1"/&gt;
      &lt;/LinearLayout&gt;
  
  &lt;/FrameLayout&gt;
  </code></pre>
  
  <p></p>
  
  <p>The following is a screenshot of how the buttons appears. <a href="https://i.stack.imgur.com/v8dnz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/v8dnz.png" alt="Snap"></a></p>