dev*_*v90 6 android locale android-layout
我正在尝试使用国家/地区代码获取用户语言,例如en-US, es-es,但是当我使用 时Locale.getDefault().getCountry(),它返回空字符串。虽然它给了我正确的语言Locale.getDefault().getLanguage()
en-US
es-es
Locale.getDefault().getCountry()
Locale.getDefault().getLanguage()
归档时间:
6 年,11 月 前
查看次数:
2292 次
最近记录: