title: How to user android:digits programmatically
body: <p>I am currently using </p>
  
  <pre><code>android:digits="qwertzuiopasdfghjklyxcvbnmQWERTZUIOPASDFGHJKLYXCVBNM "
  </code></pre>
  
  <p>in android XML in EditText and it is working perfectly. The user can enter only characters from a-z,A-Z and space(I don't want to allow the user to enter numbers or special characters). I would like to add this property to another Edit Text field programaticaly. Can anyone help me to add the above property programmaticaly. I have referred the following links but its of no use </p>
  
  <p><a href="https://stackoverflow.com/questions/12871561/change-androiddigits-programatically">Change android:digits programmatically</a>
  <a href="https://stackoverflow.com/questions/5906744/how-to-block-special-characters-in-androids-edittext-no-androiddigits">How to block special characters in androids editText? no ANDROID:DIGITS</a></p>
  
  <p>if I use</p>
  
  <pre><code>edtTxt.setKeyListener(DigitsKeyListener.getInstance("qwertzuiopasdfghjklyxcvbnmQWERTZUIOPASDFGHJKLYXCVBNM"));
  </code></pre>
  
  <p>numeric keypad is getting opened. </p>