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")
效果图
中文英文
相关文章推荐
- Android判断当前系统语言
- Android的启动模式(上)
- Android studio 无法启动解决方案
- 关爱Android手机休眠,为什么耗电
- Android Canvas drawText实现中文垂直居中
- Android Mms之:短信发送流程(图文详解)
- android 自定义标题栏
- Android 记录小问题
- android开发技术
- android 图片选择控件,单图裁剪,多图选择
- Android Fragment 笔记
- Android 换皮肤
- Android framework系统默认设置修改
- 使用3DES加密与解密实习Android端和后台的数据加密传输
- Android应用停用
- Android 字体设置
- android日志保存
- 9.Android 万能ViewHolder
- 在Android平台上捕获Back键的事件
- Android 存储及数据操作 之 PreferenceScreen