更改键盘输入语言 [英] Change Keyboard input language

查看:154
本文介绍了更改键盘输入语言的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发两种不同的语言之一的Andr​​oid应用程序。当更改语言用户点击按钮,它要求从两个不同的语言选项,并更改键盘根据语言来选择语言。

I am developing one android app in two different languages. When user click on "Change language" button it ask to choose language from two different languages option and change keyboard according to that language.

例如:用户选择阿拉伯语的语言,然后键盘输入的语言应该从英文自动更改为阿拉伯语

For example : User choose "Arabic" language then keyboard input language should automatically change from English to Arabic.

请帮我解决这个问题。这是迫切需要我。

Please help me to resolve this issue. It's urgent for me.

在此先感谢。

推荐答案

这是不是真的有可能。您可以使用计算器上的一些解决方案present已经改变用户的语言环境:

This isn't really that possible. You can change the users locale using a number of solutions present on stackoverflow already:

这里有个例子或的这里再

然而,这只会改变语言环境。您会遇到的问题是,该键盘是本身的应用程序。因此,你不能直接从您的应用程序进行更改,也不能保证你的用户将有阿拉伯字符集或插件或什么的,因为他们的键盘应用程序,这些应用。

However, this will only change the locale. The problem you will encounter is that the keyboard is itself an application. Therefore, you cannot change it directly from your app, nor can you guarantee that your user will have the "Arabic" charset or addon or whatever, for they keyboard app that they employ.

您唯一真正可靠的解决方案,如果你想完成你所需要的是创建你自己的键盘输入。否则,这将是在用户的手来改变他们的键盘阿拉伯

Your only real and reliable solution if you wish to accomplish what you need would be to create your own keyboard input. Otherwise, it will be in the user's hands to change their keyboard to Arabic.

这篇关于更改键盘输入语言的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆