title: How to stop taking input after EditText length crosses a limit
body: <p>I know there are a couple of questions already been asked, but I have a little different query.</p>
  
  <p>How do we put a limit on the maximum number of characters to be inputted in <code>EditText</code>? Whether I do this</p>
  
  <pre><code>android:maxLength="7"
  </code></pre>
  
  <p>or this</p>
  
  <pre><code>((EditText)findViewById(R.id.zip)).setFilters(new InputFilter[] {
      new InputFilter.LengthFilter(7)
  });
  </code></pre>
  
  <p>I can still type into the text field, though it's not visible and not taken into account. If I keep typing, the input becomes invisible after the limit, but the <code>test-suggestions</code> keep building for higher number of letters. </p>
  
  <p>Suppose my limit is 7 and I typed 10 letters, then I would only see the first 7 letters, but text-suggestions will show 10 letter words. Furthermore, I need to press backspace 3 times to actually start deleting letters from my shown 7-letter word.</p>
  
  <p>So, my question is: Is there a way to stop taking input after a certain character length? </p>
  
  <p><strong>PS</strong>: Needless to say, but though I don't want input to be inputted after 7 letters, I would allow delete or backspace.</p>