I want to limit my text view to a maximum of 5 lines, so I did:
<TextView android:id="@+id/text" android:layout_width="fill_parent" android:layout_height="wrap_content" android:maxLines="5" />
But when I try to configure it to add "..." when the text is truncated, I add android: ellipsize = "end". I see ... but then my TextView has only the maximum row of 2, instead of 5.
Can you suggest how I can make the textual representation of the maximum line 5 and add "..." when it is truncated?
Thank.
android
michael May 26 '10 at 12:22 a.m. 2010-05-26 00:22
source share