title: CheckBox at the right of a TextView
body: <p>I have a multi-line TextView and next to it I want to show a checkbox. The problem is that if the text stretches across more than 1 row, the checkbox isn't displayed. </p>
  
  <p>So far, I have (without the ids): </p>
  
  <pre><code>&lt;LinearLayout
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:clickable="true"
      android:focusable="true"
      android:gravity="left"
      android:orientation="vertical" &gt;
  
      &lt;LinearLayout
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:clickable="true"
          android:focusable="true"
          android:gravity="left"
          android:orientation="horizontal" &gt;
  
          &lt;TextView
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:paddingLeft="3dp"
              android:paddingTop="5dp"
              android:singleLine="false"
              android:text="Lorem ipsum dolor sit amet, consectetur adipiscing"
              android:textAppearance="?android:attr/textAppearanceLarge" /&gt;
  
          &lt;CheckBox
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:focusable="false"
              android:text=""
              android:clickable="false" /&gt;
  
      &lt;/LinearLayout&gt;
  
      &lt;TextView
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:paddingBottom="3dp"
          android:paddingLeft="3dp"
          android:singleLine="false"
          android:text="Lorem ipsum dolor sit amet, consectetur adipiscing"
          android:textAppearance="?android:attr/textAppearanceSmall" /&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>This is how the layout is rendered (notice the missing checkbox):</p>
  
  <p><img src="https://i.stack.imgur.com/W1Th7.png" alt="Missing the checkbox"></p>
  
  <p>If I shorten the text, it's rendered correctly:</p>
  
  <p><img src="https://i.stack.imgur.com/bstfI.png" alt="Checkbox is there"></p>
  
  <p>Is it possible to add a CheckBox at the right of a multi-line TextView? </p>
  
  <p>Edit: Sorry everyone, I solved the problem pretty soon after asking this question (by adding layout_weight=1), but posted in a wrong thread. I have accepted the answer suggesting that.</p>