Checklist layout with a fixed part
<p>I'm trying to make the layout of a checklist, which has this type of row:
<img src="http://i.stack.imgur.com/5GeCF.png" alt="enter image description here"></p>

<p>Where:</p>

<ul>
<li>A is a CheckBox (it's fixed size)</li>
<li>B is a TextView (it should stretch all available space)</li>
<li>C is a TextView (it should stretch all available space)</li>
<li>D is a TextView (it's fixed size)</li>
<li>E is the parent, the row of the list</li>
</ul>

<p>This is my layout.xml:</p>

<pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="horizontal"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:gravity="center_vertical"&gt;
    &lt;CheckBox android:layout_width="wrap_content"
        android:layout_height="wrap_content" /&gt;
    &lt;LinearLayout android:orientation="vertical"
    android:layout_width="wrap_content"
        android:layout_height="60dp"
        android:layout_weight="1"
        android:paddingRight="6dp"
        android:gravity="center_vertical"&gt;
        &lt;TextView android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:layout_marginLeft="6dp"
            android:gravity="center_vertical"
            android:textAppearance="?android:attr/textAppearanceMedium"
            android:singleLine="true" /&gt;
        &lt;TextView android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:layout_marginLeft="6dp"
            android:gravity="center_vertical"
            android:textAppearance="?android:attr/textAppearanceSmall"
            android:singleLine="true" /&gt;
    &lt;/LinearLayout&gt;
    &lt;TextView android:layout_width="wrap_content"
    android:layout_height="60dp"
        android:layout_weight="2"
        android:layout_marginLeft="6dp"
        android:layout_marginRight="6dp"
        android:gravity="center_vertical|right"
        android:textAppearance="?android:attr/textAppearanceMedium"
        android:textColor="#2B78E4" /&gt;
&lt;/LinearLayout&gt;
</code></pre>

<p>And I'm getting this result:</p>

<p><img src="http://i.stack.imgur.com/elpiG.png" alt="enter image description here"></p>

<p>The first row has very long content on B and C, and so D is not appearing at all.</p>

<p>The second row has long content, but shorter than first's, and so D is shrinked.</p>

<p>The third row has short content, and D is displayed correctly.</p>

<p>How could I modify my layout so D is always displayed correctly, and B&amp;C will be filling only the available space?</p>
