开发者

can i restrict the edittext widget to accept phone numbers only?

Does the EditText widget phone numbers from simple numbers? for example, 开发者_Python百科edittext has a input method as password, which specifies that whatever typed in is a password. Also we can restrict it to enter only numbers, but i want to tackle with phone numbers.


Yes sure you can use android:phoneNumber="true"


Please see this .

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜