Android fragment layout: load fragment layout in activity layout.. it dont auto resize and appear only a part of fragment layout
<p>hi mate hi have in my activity this 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" 

            android:orientation="vertical"
            android:id="@+id/linearl"&gt;

            &lt;LinearLayout
                android:layout_width="match_parent"
                android:layout_height="31dp"
                android:orientation="horizontal" &gt;

                &lt;TextView
                    android:id="@+id/textView1"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_gravity="fill_horizontal"
                    android:text="Status Connection: " /&gt;

            &lt;TextView
                android:id="@+id/textView2"
                android:layout_width="match_parent"
                android:layout_height="35dp"
                android:gravity="center_horizontal"
                android:text="@string/status_offline" /&gt;

            &lt;/LinearLayout&gt;

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

<p>i try to insert in my activity layout( the linear layout linearl) a fragment with this 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="wrap_content"
    android:layout_height="match_parent"
    android:orientation="vertical" 
     android:background="@drawable/carbonio_background"&gt;
     &lt;ListView
        android:id="@+id/lista_dtc"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:layout_weight="1"
        android:background="@drawable/carbonio_background"
        android:stackFromBottom="false"
        android:transcriptMode="alwaysScroll" /&gt;
      &lt;LinearLayout
        android:orientation="horizontal"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        &gt;

        &lt;Button
            android:id="@+id/button_sendh1"
            android:layout_width="wrap_content"
            android:layout_height="fill_parent"
            android:layout_weight="1"
            android:background="#000000"
            android:drawableTop="@drawable/search"
            android:text="search dtc" /&gt;

        &lt;Button
            android:id="@+id/button_sendh"
            android:layout_width="wrap_content"
            android:layout_height="fill_parent"
            android:layout_weight="1"
           android:background="#000000"
           android:drawableTop="@drawable/clear"
           android:text="clear dtc" /&gt;

    &lt;/LinearLayout&gt;

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

<p>but a piece of fragment layout dont appear on the screen. how can solve this problem ?</p>
