由网友(剧蔠。)分享简介:我有一个的EditText中,我不得不接受的字母用户输入这是特定图案,和连字符的 - 自动插入I am having a EditText in which I have to accept alphanumeric input from user which is specific to pattern, and...
我有一个的EditText中,我不得不接受的字母用户输入这是特定图案,和连字符的 - 自动插入
I am having a EditText in which I have to accept alphanumeric input from user which is specific to pattern, and hyphens '-' are inserted automatically.
"XXX-XXX-XXXX"
如何实现这一目标?是否有任何的Android模式的工具?
how to achieve that ? Is there any pattern tool in android ?
推荐答案
您可以使用addTextChangedListener来的EditText结果请参阅本question ,这表明它
You can use addTextChangedListener to EditText Refer this question , which demonstrate it
相关推荐
最新文章