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
这是我们的工作