Ellipsize not working for textView inside custom listView
Without using deprecated properties, the following lines work great for me
android:ellipsize="end" android:lines="1"android:scrollHorizontally="true"
ref http://code.google.com/p/android/issues/detail?id=882#c9
Ellipsize is broken (go vote on the bug report, especially since they claim it's not reproducible) so you have to use a minor hack. Use:
android:inputType="text"android:maxLines="1"
on anything you want to ellipsize. Also, don't use singleLine
, it's been deprecated.
UPDATE:
On closer inspection, the problem you're having is that your table is extending off the right side of the screen. Changing your TableLayout
definition to:
<TableLayout android:id="@+id/info_table" android:layout_width="fill_parent" android:layout_height="fill_parent" android:paddingLeft="5px" android:paddingTop="10px" android:shrinkColumns="1">
should fix that problem, then do what I said above to ellipsize your TextView
.