title: Android Layout_weight
body: <p>Maybe I misunderstood the layout_weight parameter but I can't get it why something like this is not working...</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="1"&gt;
  
  &lt;TextView
      android:id="@+id/textView1"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:text="TextView" android:layout_weight="0.3" android:background="@color/apr_blue"/&gt;
  
  &lt;TextView
      android:id="@+id/textView2"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:layout_weight="0.2"
      android:text="TextView" 
      android:background="@color/apr_brightyellow"/&gt;
  
  &lt;TextView
      android:id="@+id/textView3"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:layout_weight="0.5"
      android:text="TextView" 
      android:background="@color/apr_yellow"/&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>I have three or more textviews within a LinearLayout. 
  I want to place them in columns with a percentage width.
  And that is what it produces:</p>
  
  <p>With layout_weight setted to 0.3 / 0.2 / 0.5</p>
  
  <p><img src="https://i.stack.imgur.com/ZCJIH.png" alt="Android layout_weight incorrectly"></p>
  
  <p>Then I varied the layout_weight parameters just a bit as follows:</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="1"&gt;
  
  &lt;TextView
      android:id="@+id/textView1"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:text="TextView" android:layout_weight="0.3" android:background="@color/apr_blue"/&gt;
  
  &lt;TextView
      android:id="@+id/textView2"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:layout_weight="0.3"
      android:text="TextView" 
      android:background="@color/apr_brightyellow"/&gt;
  
  &lt;TextView
      android:id="@+id/textView3"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:layout_weight="0.4"
      android:text="TextView" 
      android:background="@color/apr_yellow"/&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>And now I get it as I wanted:</p>
  
  <p>With layout_weight setted to 0.3 / 0.2 / 0.5</p>
  
  <p><img src="https://i.stack.imgur.com/1icvb.png" alt="Android layout_weight correctly"></p>
  
  <p>is it a bug or maybe I really misunderstood the whole thing about layout_weight?</p>