If you are trying to get multiline ellipsis working, unfortunately it doesn't work very well. This is a known bug in the Android platform and as far as I know it hasn't been fixed.
In a TextView
the best you can get is 2 lines ellipsizing (which can be achieved by setting
android:maxLines="2"
Refer to this link.
Even with an absolute width as mentioned in another answer, it still only gives you at max, 2 lines of ellipsis. (But as mentioned also, single line ellipsis is achievable). So for example, your text might fill your 8 line TextView, but will look like this when you turn ellipsis on:
+---------------------------------------------------+
| |
| This is my cool text that is supposed to fill the |
| entire textview but unfortunately because of t... |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
+---------------------------------------------------+
If you know the size of your TextView, you can use a custom component available here (Unfortunately the google code project that originally hosted it seems to have disappeared, hence this link is all I could find).