I try to use layout_weight combination with layout_width or layout_height, but in vain
<p>Many answers have point out: when we use layout_weight we shoule set the layout_height="0dp", if we set layout_height="fill_parent", the result not our expection. what  layout_height="fill_parent" have done in OnMeasure? who can explain it? 
I'm sorry. this is my first time asking question. the scene is below:</p>

<pre><code>&lt;LinearLayout
    android:layout_width="fill_parent"
    android:layout_height="50dp"
    android:orientation="horizontal" &gt;

    &lt;TextView
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:layout_weight="2"
        android:background="#a00"
        android:text="r" /&gt;

    &lt;TextView
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:layout_weight="3"
        android:background="#0a0"
        android:text="g" /&gt;

    &lt;TextView
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:layout_weight="1"
        android:background="#00a"
        android:text="b" /&gt;
&lt;/LinearLayout&gt;
</code></pre>
