weightSum not splitting screen properly in android
<p>This is my layout file.</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:orientation="horizontal"
        android:weightSum="2"&gt;       

        &lt;LinearLayout
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:orientation="vertical"&gt;

            &lt;TextView
                android:id="@+id/mainText"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginTop="10dip"
                android:text="Default Text"
                android:textSize="24dip" /&gt;


            &lt;TextView
                android:id="@+id/detailsText"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginTop="5dip"
                android:text="Default Text"

                android:layout_gravity="center_horizontal" /&gt;


        &lt;/LinearLayout&gt;

        &lt;Button
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:layout_gravity="center"
            android:text="Hot"
            /&gt;

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

<p>I want to split the screen width into two parts. First part will have 2 texts (second below first one) and second split part have a button.</p>

<p>The above layout splits the screen into 3 parts. I don't understand why?</p>

<p>can anyone help me on this?
i want to display two text second below the first one</p>