title: Masked Input Using EditText Widget in Android
body: <p>Is there a way I can specify an input mask to the EditText control in Android?</p>
  <p>I want be able to specify something like ### - ## - #### for a Social Security Number. This will cause any invalid input to be rejected automatically (example, I type alphabetical characters instead of numeric digits).</p>
  <p>I realize that I can add an OnKeyListener and manually check for validity. But this is tedious and I will have to handle various edge cases.</p>