如何将EDITTEXT输入类型设置为正整数或正数十进制?
我已经尝试过,但没有起作用:
android:inputType="number"
android:digits="0123456789."
I have already tried this but it has not worked:
android:inputType="number"
android:digits="0123456789."
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
因此,我相信您正在寻找输入类型INT。或type_class_number。
所有输入类型的列表可以找到:
So I believe you're looking for the input type int. Or TYPE_CLASS_NUMBER.
A list of all of the input types can be found at:
https://developer.android.com/reference/android/text/InputType