Locale myLocale = new Locale("en","US");
Locale.setDefault(myLocale);
Resources resources = getResources();
DisplayMetrics dm = resources.getDisplayMetrics();
Configuration config = getResources().getConfiguration();
config.locale = myLocale;
resources.updateConfiguration(config, dm);
android多语言支持
最新推荐文章于 2024-04-11 01:11:56 发布