如何覆盖默认键盘布局?
我的 Android 应用程序有多个不同输入语言的 EditText 小部件 - 即字段“1”严格是英语,字段“2”严格是德语
据我所知,不可能直接更改键盘语言。但是,是否可以根据 EditText 字段 ID/设置/类型或其他来覆盖某些键以查看和写入不同的字符(即 1->ą 等)?
由于所有单词都是名称/公司名称,因此不需要自动更正功能。
My Android app has several EditText widgets in various input languages- i.e. field "1" is strictly English and field "2" is strictly German
As far as I know, it is impossible to directly change the keyboard language. However, is it possible to override certain keys to both look and write different characters (i.e. 1->ą and etc) depending on the EditText field id / settings / type or other?
As all the words are names / company names the autocorrect feature is not necessary.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
可以通过编程方式设置键盘语言,但不鼓励这样做。我想这个问题中的讨论会有所帮助。
It is possible to set the keyboard language programmatically, but discouraged. I imagine the discussion in this question will be helpful.