title: Android: How to divide LinearLayout in two parts of exactly the same size?
body: <p>I have the following layout:</p>
  
  <pre><code>&lt;LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:background="#FFFFFF"
    android:orientation="horizontal"
    android:weightSum="2"&gt;
  
      &lt;fragment xmlns:android="http://schemas.android.com/apk/res/android"
      android:name="ch.lexs.view.LawList"
      android:layout_width="wrap_content"
      android:layout_height="fill_parent"
      android:layout_weight="1"&gt;
      &lt;/fragment&gt;
  
      &lt;fragment xmlns:android="http://schemas.android.com/apk/res/android"
      android:name="ch.lexs.view.ParagraphList"
      android:layout_width="wrap_content"
      android:layout_height="fill_parent"
      android:layout_weight="1"&gt;
      &lt;/fragment&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>My intention was to divide the LinearLayout in two parts that are exactly the same size. I thought this can be done by using weight. But the second fragment is way smaller. What am I doing wrong?</p>