title: Limit the number of characters viewed in textfield in android
body: <p>I am still new to android and i am trying to make a notes application</p>
  
  <p>i want the user to be able to type anything in the title (text)
  but only display a few characters (say 15) followed by (...) </p>
  
  <p>i tried searching for this but the only thing i found is how to LIMIT size of text ( i do not want to do that i just want to limit what is viewed)</p>
  
  <p>i do not want to do the following:</p>
  
  <pre><code>android:maxLength="10"
  </code></pre>
  
  <p>so my question is : what is the best way to do that?
   also is there a way to do it in xml or only in java?</p>
  
  <p>Any help is appreciated :) </p>