Android判断当前系统语言

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")

效果图

  • 中文

这里写图片描述

  • 英文

这里写图片描述

posted on 2015-09-11 17:50  封起De日子  阅读(2097)  评论(0编辑  收藏  举报

导航