title: Using 'ellipsize' in a TextView and stretch the view ONLY if necessary
body: <p>I have 2 TextViews in a row and 2 requirements:</p>
  
  <p>1) If the first TextView is not too wide, it should look as follows</p>
  
  <p>|[1 text][2 text]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|</p>
  
  <p>2) If the first TextView is too wide, it should look as follows</p>
  
  <p>|[1 text text tex...][2 text]|</p>
  
  <p>The second requirement is simple, you can use android:layout_weight="1", e.g.:</p>
  
  <pre><code>&lt;LinearLayout
      android:orientation="horizontal"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
  &gt;
      &lt;TextView
          android:layout_width="0dp"
          android:layout_height="wrap_content"
          android:layout_weight="1"
          android:singleLine="true"
          android:ellipsize="end"
          android:text="1 text text text text text"
      /&gt;
      &lt;TextView
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="2 text"
      /&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>, but if the first TextView contains a short text, it looks like</p>
  
  <p>|[1 text&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;][2 text]|</p>
  
  <p>, which is not acceptable.</p>
  
  <p>So how to satisfy both 1) and 2) requirements at the same time?</p>