title: Android EditText with fixed number of max lines and no scrolling
body: <p>I would like to create a text input that:</p>
  
  <p>1) Always displays 3 lines</p>
  
  <p>2) Does not allow the user to enter any more text than the available space in the 3 lines</p>
  
  <p>3) Is not scrollable, if users enters text greater than 3 lines.</p>
  
  <p>Technically, I allow for the user to enter up to 500 chars for saving to DB, but I am not expecting near this amount of text for the input. So, my usage of maxLength is only precautionary.</p>
  
  <p><strong>Here is my current EditText:</strong></p>
  
  <pre><code>&lt;EditText android:id="@+id/edit_description"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:lines="3"
      android:maxLines="3"
      android:maxLength="500"
      android:inputType="textMultiLine" /&gt;
  </code></pre>
  
  <p><strong>Problem</strong></p>
  
  <p>The problem is that if the user enters text greater than 3 lines, the EditText adds additional lines and scrolls downward into the new line. It only limits the user to 500 characters.</p>