title: how to make first character to be number and second character to be letter in edittext in android?
body: <p>I want to make first character to be numeral and second character to be letter.
  I tried like this but it disallows letters totally.</p>
  <pre><code>public static InputFilter[] myfilter=new InputFilter[]{
          new InputFilter() {
              @Override
              public CharSequence filter(CharSequence source, int start, int end, Spanned dest, int dstart, int dend) {
                  for (int i=start;i&lt;end;i++){
                      if (!Character.isDigit(source.charAt(0))){
                          return &quot;&quot;;
                      }
  
                  }
                  return null;
              }
          }
      };
  </code></pre>
  <p>//////</p>
  <pre><code> edittext1.setFilters(myfilter);
  </code></pre>
  <p>I want to make first character to be only number and second character only letters. how can I do that?</p>