Android中EditText的InputType
I want to use default keyboard for, but want also that it occurs with numeric input type.
Does anybody know how to do that?
Maybe there is a way to press '?123'-key programmatically?
I've took a look to list of inputTypes, but none of them seems to be the proper one for my need.
Thank you
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以使用这 3 个中的任意一个:
例如:
android:inputType="numberDecimal"< /代码>
You can use either of these 3:
For example:
android:inputType="numberDecimal"
在你的代码中设置
inputType = “数字”
set in ur code
inputType = "number"