title: Understanding android:layout_weight
body: <p>Why the following listing shows only the second <code>TextView</code> (red)?</p>
  
  <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:orientation="vertical"
      android:layout_width="match_parent"
      android:layout_height="match_parent"&gt;
      &lt;TextView
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:layout_weight="1"
          android:text="11111"
          android:background="#00FF00" /&gt;
  
      &lt;TextView
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:layout_weight="0"
          android:background="#FF0000"
          android:text="00000"/&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>I know that if I set <code>android:layout_height="0px"</code> it will only show the first <code>TextView</code> (green), and I understand this behavior.</p>
  
  <p>But why when I set <code>android:layout_height="match_parent"</code>, the first <code>TextView</code> disappear completely from the screen.</p>