您的位置:首页 > 移动开发 > Android开发

Android判断当前系统语言

2015-09-11 17:50 288 查看

Android获取当前系统语言

getResources().getConfiguration().locale.getCountry()


国际化常用语言

中文:

getResources().getConfiguration().locale.getCountry().equals("CN")


繁体中文:

getResources().getConfiguration().locale.getCountry().equals("TW")


英文(英式):

getResources().getConfiguration().locale.getCountry().equals("UK")


英文(美式):

getResources().getConfiguration().locale.getCountry().equals("US")


效果图

中文



英文

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: