title: how to set textview width wrap_content but limit to 1/3 of parent's width
body: <p>Having a <code>TextView</code>, its width should not go over 1/3 of its parent's width. If its width is smaller than 1/3 of parent, it should have <code>wrap_content</code> behavior. Its horizontal sibling will always start next to it.</p>
  
  <p>Tried following, it always has hard cut of 1/3 and 2/3, so if the text1 has less space than 1/3 the <code>TextView</code> two will not start next to it.</p>
  
  <p>change the <code>LinearLayout</code> to <code>RelativeLayout</code>, then the <code>android:layout_weight="n"</code> does not work</p>
  
  <p>basically, need to define width is <code>wrap_content</code> and the <code>maxWidth</code> does not go over 1/3.</p>
  
  <p>any suggestion?</p>
  
  <pre><code>&lt;LinearLayout 
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:orientation="horizontal"
      android:weightSum="3"&gt;
  
      &lt;TextView 
          android:layout_width="0dp"
          android:layout_height="wrap_content"
          android:layout_weight="1"
          android:singleLine="true"
          android:ellipsize="end"
      /&gt;
  
      &lt;TextView 
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_width="0dp"
          android:singleLine="true"
          android:ellipsize="end"
          android:layout_weight="2"
      /&gt;
  &lt;/LinearLayout&gt;
  </code></pre>