请帮帮我! 我有一个简单的应用程序,其中'Editetext',文件夹:值 - RU,值,价值hy - 为本地化。我想从适当的值文件夹给Edittext提示。 但困惑,并为“en”的例子,取值的价值hy。Android本地化错误
Locale locale = new Locale("en");
Locale.setDefault(locale);
Configuration config = new Configuration();
config.locale = locale;
getApplicationContext().getResources().updateConfiguration(config, null);
EditText ed=(EditText)findViewById(R.id.edit);
ed.setHint(getResources().getString(R.string.text));`
据我所知,您在执行多次期间更改语言环境。它是否正确? –
是的,这是正确的 – user3276524
请编辑您的问题,并包括清单。你没有使用android:configChanges是你吗? – Simon