设置程序语言

Locale locale = new Locale(language);
Locale.setDefault(locale);
Configuration config = getResources().getConfiguration();
DisplayMetrics metrics = getResources().getDisplayMetrics();
config.locale = Locale.SIMPLIFIED_CHINESE;
getResources().updateConfiguration(config, metrics);

posted on 2017-03-27 14:53  yaolunhui  阅读(233)  评论(0编辑  收藏  举报

导航