title: Android EditText- maxLength
body: <p>I know that I can set the maximum length of an input text within an EditText by using </p>
  
  <pre><code>android:maxLength="10".
  </code></pre>
  
  <p>But can I also set the maximum length so that once the entire EditText is filled with text, the user can't type in anything anymore?</p>
  
  <p>Something like this:</p>
  
  <pre><code>|_________________________|   &lt;-- empty EditText   
  
  |texttexttexttext_________|   &lt;-- user can still type in text
  
  |texttexttexttexttexttextt|  &lt;-- that's it, user can't type in stuff anymore
  </code></pre>
  
  <p>How could I accomplish that?</p>
  
  <p><strong>EDIT:</strong>
  In other words: I don't want it limited to exactly 10 characters, but I want to limit it so that once the entire EditText is filled (which depends on the screen size), the user can't type in stuff anymore.</p>