Android 软键盘的自定义输入类型/按键设置
我正在研究改变 Android 输入法的一些部分,以专门输入坐标。
所需的键/字符是 1234567890.-: 当选择数字符号和十进制时,我覆盖了前 12 个字符,但无法包含 : 或任何其他可以代替它的字符(完美的是有一个 ° 键)。
我现在已经在输入过滤器中编写了过滤这些字符的操作:它可以工作,但并不漂亮。我遇到的主要问题是我无法在数字侧而不是字母侧打开键盘。
我非常感兴趣的另一个选择是修改现有的电话类型键盘以包含我想要的按键。它将消除很多混乱并使剩余的键更大,从而使输入更容易。
I'm looking into changing bits and pieces of Android's input methods, to enter coordinates specifically.
The keys/characters needed are 1234567890.-:
When choosing numeric signed and decimal I have the first 12 covered, but can't get the : to be included or any other character that can take it's place (perfect would be to have a ° key).
I've now written in input filter that filters those characters: it works but it ain't pretty. The main issue I have is that I can not get the keyboard to open on numbers side instead of the letters side.
Another option that I'd be very interested in would be to amend the existing phone type keypad to include my desired keys. It would remove a lot of clutter and make the remaining keys larger, thus making input easier.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的意思是编写自己的自定义键盘吗?
如果是这样你可以参考这个:如何为Android开发软键盘?
Do you mean writing your own custom keyboard?
If so you can refer this: How to develop a soft keyboard for Android?