title: Layout issue with Android Studio
body: <p>Recently picking up android development, I have hit a snag in the road. I'm having trouble positioning my layouts. Screenshots are as follows: </p>
  
  <p><img src="https://i.stack.imgur.com/pueLJ.jpg" alt="originalLayout"></p>
  
  <p>I'm trying to input either another layout type/list view in the upper section of the screen, without disrupting the button/text box at the bottom, though.. When extending this layout. I hit the following snag: </p>
  
  <p><img src="https://i.stack.imgur.com/W7Hc3.jpg" alt="Modified Layout"></p>
  
  <p>The entire contents of the original frame shift when the box of the new layout is extended, I've tried modifying:</p>
  
  <pre><code>android:layout_gravity="top"&gt;
  </code></pre>
  
  <p>and other layout attributes such as weight, margin, height/width.. This always hits the same problem. </p>
  
  <p>My XML for this view is: </p>
  
  <pre><code>&lt;LinearLayout 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="horizontal" &gt;
  
      &lt;FrameLayout
          android:layout_width="wrap_content"
          android:layout_height="483dp"
          android:layout_weight="1.06"
          android:layout_gravity="top"&gt;
  
          &lt;/FrameLayout&gt;
  
      &lt;EditText android:id="@+id/edit_message"
          android:layout_width="0dp"
          android:layout_height="wrap_content"
          android:layout_weight="1"
          android:hint="@string/edit_message"
          android:layout_gravity="bottom" /&gt;
      &lt;Button
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="@string/button_send"
          android:layout_gravity="bottom"
          android:onClick="SendMessageButton"
  
          /&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>Though, i'm some-what stuck on how to make the correct changes &amp; any response to this question would be greatly appreciated! </p>