Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/212.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android “如何改变”;“键盘语言文本输入”;当我在应用程序中更改语言时_Android_Configuration_Localization_Resources - Fatal编程技术网

Android “如何改变”;“键盘语言文本输入”;当我在应用程序中更改语言时

Android “如何改变”;“键盘语言文本输入”;当我在应用程序中更改语言时,android,configuration,localization,resources,Android,Configuration,Localization,Resources,我想创建一个应用程序,在我的应用程序中支持多种语言。但是当我改变语言时,我不能改变键盘语言。 以下是在我的应用程序中更改语言的代码 String[]lCode=getResources().getStringArray(R.array.language\u代码) Locale=newlocale(lCode[position]) Locale.setDefault(Locale) Configuration config=new Configuration() config.locale=loc

我想创建一个应用程序,在我的应用程序中支持多种语言。但是当我改变语言时,我不能改变键盘语言。 以下是在我的应用程序中更改语言的代码

String[]lCode=getResources().getStringArray(R.array.language\u代码)
Locale=newlocale(lCode[position])
Locale.setDefault(Locale)
Configuration config=new Configuration()
config.locale=locale
getBaseContext().getResources().updateConfiguration(配置,getBaseContext().getResources().getDisplayMetrics())

这里是语言代码值xml

这是我们的工作