How to set maxLines and ellipsize of a TextView at the same time
<p>I want to limit my text view to have maximum of 6 lines, so I did:</p>

<pre><code>&lt;TextView
    android:id="@+id/text" android:layout_width="fill_parent"
    android:layout_height="wrap_content"  
    android:maxLines="5"/&gt;
</code></pre>

<p>But when I try to configure it to add '...' when the text is truncated, I add android:ellipsize="end".  I do see the ... but then my TextView only has a max line of 2, instead of 5.</p>

<p>Can you please how can I make the text view of maximum line of 5 and add '...' when it get truncated?</p>

<p>Thank you.</p>
