title: How to check if a TextView's text exceeds the max lines
body: <p>Is there a way to check if a TextView's text exceeds the max lines?  I've found <code>TextView.getLineCount()</code> but this can only tell me if I am using the max lines, not if I have exceeded it.</p>
  
  <p><strong>EDIT:</strong><br>
  So far, I have:</p>
  
  <pre><code>text_view.post(new Runnable() {
              @Override
              public void run() {
                  if (text_view.getLineCount() &lt; text_view.getMaxLines()) {
                      // do stuff
                  }
              }
  });
  </code></pre>
  
  <p>But this does not detect if it exceeds max lines, i.e. the if statement will pass if it uses greater than or equal to max lines.  This is because if it uses exceeds max lines then getLineCount just returns exactly max lines, never more.</p>
  
  <p>Note that the text view's text is set programmatically higher up in my code, not hardcoded in the XML.</p>