title: Two TextViews side by side, only one to ellipsize?
body: <p>I want to have two <code>TextView</code> elements appear side by side (in a list item), one aligned to the left, one to the right. Something like:</p>
  
  <pre><code>|&lt;TextView&gt;               &lt;TextView&gt;|
  </code></pre>
  
  <p>(the <code>|</code> represent the screen's extremities)</p>
  
  <p>However, the <code>TextView</code> on the left can have content that is too long to fit on the screen. In this case, I want to have it ellipsize but still show the entire right <code>TextView</code>. Something like:</p>
  
  <pre><code>|This is a lot of conte...&lt;TextView&gt;|
  </code></pre>
  
  <p>I have had numerous attempts at this, using both <code>LinearLayout</code> and <code>RelativeLayout</code>, and the only solution I have come up with is to use a <code>RelativeLayout</code> and put a <code>marginRight</code> on the left <code>TextView</code> big enough to clear the right <code>TextView</code>. As you can imagine, though, this is not optimal.</p>
  
  <p>Are there any other solutions?</p>
  
  <p><strong>Final, <code>LinearLayout</code> solution:</strong></p>
  
  <pre><code>&lt;LinearLayout
      android:layout_height="wrap_content"
      android:layout_width="fill_parent"
      android:orientation="horizontal"
      &gt;
      &lt;TextView
          android:layout_height="wrap_content"
          android:layout_width="wrap_content"
          android:layout_weight="1"
          android:ellipsize="end"
          android:inputType="text"
          /&gt;
      &lt;TextView
          android:layout_height="wrap_content"
          android:layout_width="wrap_content"
          android:layout_weight="0"
          android:layout_gravity="right"
          android:inputType="text"
          /&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p><strong>Old, <code>TableLayout</code> solution:</strong></p>
  
  <pre><code>&lt;TableLayout
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:stretchColumns="1"
      android:shrinkColumns="0"
      &gt;
      &lt;TableRow&gt;
          &lt;TextView android:id="@+id/title"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:ellipsize="end"
              android:singleLine="true"
              /&gt;
          &lt;TextView android:id="@+id/date"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:layout_weight="1"
              android:singleLine="true"
              android:ellipsize="none"
              android:gravity="right"
              /&gt;
      &lt;/TableRow&gt;
  &lt;/TableLayout&gt;
  </code></pre>