title: How to "truncate" a text inside textview in android according to the orientation?
body: <p>I created a simple java function to truncate a string to be displayed in my list view. I am displaying a news title and below this a news summary. I would like to have the same behavior as the image below. Currently, i am truncating the news title with 45 chars and then appending "..." at the end of it. However, when I change the orientation to landscape, the title could appear without being truncated. I dont think the app below truncates the news title, but it keeps the title in a single line and automatically "truncates".</p>
  
  <p><img src="https://i.stack.imgur.com/E6OCr.jpg" alt="alt text"></p>
  
  <p>How can I achieve this behavior in my app?</p>