title: Android EditText Set Max Length
body: <p>I was trying to set the max length of an EditText, but I didn't get success.</p>
  <p>I tried like this:</p>
  <pre><code>a.setFilters (new InputFilter[] { new InputFilter.LengthFilter (a.Length) });
  </code></pre>
  <p>and I get some errors ( Not at a.Length ).</p>
  <p>and like this:</p>
  <pre><code>a.setMaxLength ( a.Lenght);
  </code></pre>
  <p>and still some errors.</p>
  <p>I think that I forget some headers but that's just a guess.</p>
  <p>Metion that I use Xamarin. Thank you in advance.</p>