title: How to show 3 dots at the end of text in textview
body: <p>I know this question is asked many times, i have gone through all the solutions but still the problem is same.</p>
  
  <p>i want my text length to be of 50 characters. now it is coming in 2 lines. </p>
  
  <p>Below is what i did:</p>
  
  <pre><code> &lt;TextView
              android:id="@+id/notification_Message"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_below="@+id/notification_head"
              android:layout_centerHorizontal="true"
              android:layout_margin="10dp"
              android:gravity="center"
              android:ellipsize="end"
              android:maxLength="50"
              android:text=" Hello developer. please check this message for long length. max length to 50 characters. "   
  
              android:textSize="20sp" /&gt;
  </code></pre>
  
  <p>The text here is just a sample text i have added. it is not showing 3 dots at end rather showing message upto 50 characters. i have tried <strong>max lines</strong> also, <strong>single line false</strong> also. but no positive result.
  I also don't want to handle this thing programmatically by adding three dots logically.</p>
  
  <p>Please help</p>