title: How to disable the TextView maxLines programmatically?
body: <p>I'm having a hard time reseting the <code>maxLines</code> attribute of a <code>TextView</code> programmatically.</p>
  
  <p>Just tried setting to <code>0</code> and it doesn't work. <code>-1</code> crashes the application. I could use a simpler workaround and set the <code>maxLines</code> to <code>5000</code> but I don't want to do that.</p>
  
  <p>Any ideas how to do that?</p>
  
  <p><em>UPDATED</em></p>
  
  <p>Well, I've found one problem.. I've set the Ellipsize as well... I'm just going to use the following workaround:</p>
  
  <pre><code>TextView questionDetail = (TextView) mQuestionDetailHeader.findViewById(R.id.desc);
  
  questionDetail.setText(mCurrentQuestion.getQuestion());
  questionDetail.setMaxLines(Integer.MAX_VALUE); //As in the android sourcecode
  questionDetail.setEllipsize(null);
  </code></pre>