title: How to implement a multi line TextView with max height and internal scroll
body: <p>I want to limit the amount of space a TextView can take in the screen with the following rules:</p>
  
  <ul>
  <li>If the text is short (lets say 140 characters or 2 lines) let it take as much room as it need  but no more.</li>
  <li>If the text is long, i.e. a paragraph, limit the max height of the view (with some kind of maxHeight or with a maximum number of lines)</li>
  </ul>
  
  <p>Here go some screenshots explaining valid and invalid results:</p>
  
  <p><strong>Short Text:</strong></p>
  
  <p><img src="https://i.stack.imgur.com/JElRg.png" alt="enter image description here"></p>
  
  <p><strong>Medium Text:</strong></p>
  
  <p><img src="https://i.stack.imgur.com/VPeP8.png" alt="enter image description here"></p>
  
  <p><strong>Internal Scroll:</strong></p>
  
  <p><img src="https://i.stack.imgur.com/Uph6b.png" alt="enter image description here"></p>
  
  <p><strong>Blank spaces:</strong></p>
  
  <p><img src="https://i.stack.imgur.com/YU6pC.png" alt="enter image description here"></p>
  
  <p><strong>Excessive length:</strong></p>
  
  <p><img src="https://i.stack.imgur.com/NqA9h.png" alt="enter image description here"></p>