[英]Numeric 9 on Android 2.X
i've got a Problem with my Phone. 我的手机有问题。 I'm currently programing an Android App with a Registration Field, in this Field i can't type in the Number 9. My App is using Phonegap, jQuery and jQtouch. 我目前正在使用注册字段对Android应用进行编程,在该字段中我无法输入数字9。我的应用使用的是Phonegap,jQuery和jQtouch。 Everything is working fine except for this error. 除此错误外,一切正常。
The problem only occurs on Android 2.X. 该问题仅发生在Android 2.X上。
Any suggestion why i can't type in a 9? 有什么建议为什么我不能输入9?
I had the same problem. 我有同样的问题。 To fix it you will need to put the following line in your phonegap init function: 要修复它,您需要在phonegap初始化函数中添加以下行:
this.appView.getSettings().setNavDump(false); this.appView.getSettings()。setNavDump(false);
Here is a link to my original question and the more detailed answer: 这是我原始问题和更详细答案的链接:
PhoneGap for Android does not accept the 9 key 适用于Android的PhoneGap不接受9键
There is possible to define in the layout xml file which digits are allowed to type into an input field ( take a look here ) - maybe something's bugged so it allows all digits except the number 9? 可以在布局xml文件中定义允许在输入字段中键入的数字( 请在此处查看 )-也许有些错误,因此它允许除数字9之外的所有数字?
For example: 例如:
<EditText
android:digits="1" />
Will create an input field which only accepts the number "1" entered. 将创建一个仅接受输入数字“ 1”的输入字段。
This seems like it could be a likely cause, but it's not really easy to say for sure before you supply some code to look at. 看来这可能是一个可能的原因,但是要确定要提供的代码之前,要说肯定不是一件容易的事。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.