Add three dot to the end of dynamic text android
<p>I have to add 3 dots to the end of a text in a textview. My textView is in an lazy list adapter so the content change very often.Only two lines are shown in the textview. </p>

<p>e.g. suppose text is </p>

<p>abcdefghigdddddddd
dddddddddddddddddddd</p>

<p>result should be </p>

<p>abcdefghigdddddddd
ddddddddddddddddd...</p>

<p>I know i should use .replace("...",""); </p>

<p>but how to always write off the last thre words ?</p>

<p>My textview is as follows</p>

<pre><code>holder.title.setText(Html.fromHtml(a.name));
</code></pre>

<p>where a.name is the data to be set.</p>
