Android: how to truncate TextView in TableLayout?
<p>I have a TextView in a column of my TableLayout.  I would like the TextView to truncate and ellipsize if its text is longer than the column can accommodate, but it just stretches the column and destroys my layout.  None of the suggestions for TextView truncating I have found have worked, I'm assuming this is due to the Table.  Any suggestions?</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;LinearLayout  xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="horizontal"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"&gt;
    &lt;TextView
        android:id="@+id/label"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"&gt;
    &lt;/TextView&gt;
    &lt;RelativeLayout  
        android:orientation="horizontal"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"&gt;
        &lt;ImageView 
            android:id="@+id/Icon"
            android:src="@drawable/icon"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"&gt;
        &lt;/ImageView&gt;
        &lt;TextView 
            android:id="@+id/Value"
            android:layout_toRightOf="@id/Icon"
            android:text="very long stringvery long stringvery long stringvery long stringvery long stringvery long stringvery long stringvery long stringvery long stringvery long stringvery long stringvery long stringvery long stringvery long stringvery long stringvery long string"
            android:inputType="text"
            android:maxLines="1"
            android:ellipsize="end"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"&gt;
        &lt;/TextView&gt;
    &lt;/RelativeLayout&gt;
</code></pre>

<p></p>

<p>*EDIT: Code for the table:</p>

<pre><code>int fiveDip = convToDip(5, getContext());

Table table = new TableLayout(getContext());
table.setPadding(fiveDip, fiveDip, fiveDip, fiveDip);
table .setLayoutParams(new TableLayout.LayoutParams(TableLayout.LayoutParams.FILL_PARENT, TableLayout.LayoutParams.FILL_PARENT));
</code></pre>
