如何覆盖默认键盘布局?

发布于 2024-12-11 09:03:44 字数 197 浏览 0 评论 0原文

我的 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技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

西瓜 2024-12-18 09:03:44

可以通过编程方式设置键盘语言,但不鼓励这样做。我想这个问题中的讨论会有所帮助。

It is possible to set the keyboard language programmatically, but discouraged. I imagine the discussion in this question will be helpful.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文