Masked Input Using EditText Widget in Android

后端 未结 6 962
花落未央
花落未央 2020-12-01 12:48

Is there a way I can specify an input mask to the EditText control in Android?

I want be able to specify something like ### - ## - #### for a Social Security Number.

6条回答
  •  感情败类
    2020-12-01 13:04

    This site gives a good 2 classes that help with masking that I found quite useful.

    You need to use the items in the comments to improve it. But worth adding to your program for ease of masking your EditText views for many masks.

提交回复
热议问题