inputType下= QUOT; numberDecimal" 。采用了android,即使不接受逗号,:; 0123456789,&QUOT位数=" [英] inputType="numberDecimal" doesn't accept comma, even when using android:digits="0123456789.,"
本文介绍了inputType下= QUOT; numberDecimal" 。采用了android,即使不接受逗号,:; 0123456789,&QUOT位数="的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个的EditText
是这样的。
<EditText
...
android:inputType="numberDecimal"
android:digits="0123456789.," />
在大多数设备上正常工作,所有在指定的字符的android:数字
被接受。但在三星GT-P5100(Galaxy Tab的2 10.1)逗号被禁用:
On most devices it works fine, all the characters specified in android:digits
are accepted. But on Samsung GT-P5100 (Galaxy Tab 2 10.1) the comma is disabled:
任何想法?
推荐答案
使用Android:inputType下=手机。 :)
Use android:inputType="phone". :)
这篇关于inputType下= QUOT; numberDecimal&QUOT; 。采用了android,即使不接受逗号,:; 0123456789,&QUOT位数=&QUOT;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文