title: Android: how to set text depending on available space
body: <p>I would like to be able to set the text in a TextView depending on the available space, in order to avoid ellipsizing.</p>
  
  <p>For example:</p>
  
  <ul>
  <li><p>if there is enough space set the text "The red fox jumps"</p></li>
  <li><p>if there is not enough space (and consequently "The red fox jumps" would be ellipsized) set the text "jumps"</p></li>
  </ul>
  
  <p>Please how can I achive that?</p>