title: How do i remove a frameLayout in code?
body: <p>I want to remove a framelayout containing a textview from the screen such that all the other layouts move up and take it's place.  Here is the layout:</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="fill_parent"
      android:layout_height="fill_parent" &gt;
  
      &lt;LinearLayout
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:orientation="vertical" &gt;
  
  
          &lt;FrameLayout
              android:layout_width="match_parent"
              android:layout_height="wrap_content" &gt;
  
  
              &lt;EditText
                  android:id="@+id/etWarning"
                  android:layout_width="fill_parent"
                  android:layout_height="109dp"
                  android:clickable="false"
                  android:ems="10"
                  android:enabled="false"
                  android:focusable="false"
                  android:inputType="textMultiLine" /&gt;
  
          &lt;/FrameLayout&gt;
  
          &lt;LinearLayout
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:paddingTop="10dp" &gt;
  
              &lt;TextView
                  android:id="@+id/tvReasonLabel"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:text="@string/ndr_Reason"
                  android:textAppearance="?android:attr/textAppearanceMedium" /&gt;
  
  
              &lt;Spinner
                  android:id="@+id/spinNDRreasons"
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content" /&gt;
  
          &lt;/LinearLayout&gt;
  
                 &lt;LinearLayout
              android:layout_width="match_parent"
              android:layout_height="wrap_content"&gt;
  
              &lt;TextView
                  android:id="@+id/tvQueston"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:paddingTop="10dp"
                  android:paddingBottom="5dp"
                  android:text="Extra question goes here"
                  android:textAppearance="?android:attr/textAppearanceMedium" /&gt;
          &lt;/LinearLayout&gt;
  
          &lt;LinearLayout
              android:layout_width="match_parent"
              android:layout_height="wrap_content"&gt;
  
  
              &lt;EditText
                  android:id="@+id/etResponse"
                  android:layout_width="wrap_content"
                  android:layout_height="120dp"
                  android:layout_weight="1"
                  android:ems="10"
                  android:inputType="textMultiLine" /&gt;
  
          &lt;/LinearLayout&gt;
  
          &lt;LinearLayout
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"&gt;
  
              &lt;Button
                  android:id="@+id/cmdDoneNDR"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_weight="1"
                  android:text="@string/cmd_done" /&gt;
          &lt;/LinearLayout&gt;
      &lt;/LinearLayout&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>The top layout is the one I want to be able to add/remove with the other layouts moving up if it's not there.</p>
  
  <p>Do I need a framelayout at all?</p>
  
  <p>thanks</p>