Why doesn't my view fill the parent?
<p>I have two layouts, this is the parent 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:id="@+id/LinearLayout1"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical" &gt;

    &lt;LinearLayout
        android:id="@+id/layoutTop"
        android:layout_width="match_parent"
        android:layout_height="0dip"
        android:layout_weight="90"
        android:background="#FF0000"
        android:gravity="center"
        android:orientation="vertical" &gt;
    &lt;/LinearLayout&gt;

    &lt;LinearLayout
        android:id="@+id/layoutBottom"
        android:layout_width="match_parent"
        android:layout_height="0dip"
        android:layout_weight="10"
        android:gravity="center"
        android:orientation="vertical" &gt;

        &lt;TextView
            android:id="@+id/txtTimer"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="Time: 00:00:00"
            android:textColor="#FF0000"
            android:textSize="25dip" /&gt;
    &lt;/LinearLayout&gt;

&lt;/LinearLayout&gt;
</code></pre>

<p>And this is the child 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="match_parent"
    android:layout_height="match_parent"
    android:background="#00FF00"
    android:orientation="vertical" &gt;


        &lt;LinearLayout
                android:layout_width="fill_parent"
                android:layout_height="fill_parent"&gt;

            &lt;TextView
                android:layout_width="match_parent"
                android:layout_height="fill_parent"
                android:gravity="center"
                android:text="Hello World" /&gt;

        &lt;/LinearLayout&gt;
&lt;/LinearLayout&gt;
</code></pre>

<p>However, when I put the child view in id/layoutTop, it doesn't fill the parent like it's supposed to. This is the result:</p>

<p><img src="http://i.stack.imgur.com/7yL2C.png" alt="enter image description here"></p>

<p>This is the code where the id/layoutTop's content is replaced: (This gets called via an event from the child be removed)</p>

<pre><code>public void OnVictory(GamePanel sender, GamePanel next) {
    if(next != null){
        gamePanel.removeView(sender);
        gamePanel.addView(next);
        next.triggerOnDisplay();
    }else{
        Toast.makeText(getBaseContext(), "Victory!", Toast.LENGTH_LONG).show();
    }
}
</code></pre>

<p>sender is the old view there, next is the one to be put in place, and gamePanel is id/layoutTop</p>

<p>And this is how the inner layout is created:</p>

<pre><code>private void initialize() {
   LayoutInflater layoutInflater = (LayoutInflater) getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE);
   layoutInflater.inflate(R.layout.appetizerfakeout,this);
}
</code></pre>

<p>Why is my inner view not filling the parent?</p>
