开发者

getting list of languages supported by android keyboard

开发者 https://www.devze.com 2023-03-18 12:48 出处:网络
I need to display the list of 开发者_如何学Cthe all languages which are supported by android keyboard. Now I am using Locale.getAvailableLocales(); method but i am getting language and country constan

I need to display the list of 开发者_如何学Cthe all languages which are supported by android keyboard. Now I am using Locale.getAvailableLocales(); method but i am getting language and country constants.

I need all language names only. Is it possible? and how ?.


How about using Locale.getDisplayName(Locale) on each Locale you get with Locale.getAvailableLocales();?

Returns this locale's language name, country name, and variant, localized to locale.

new Locale("en").getDisplayName(Locale.US) -> English

0

精彩评论

暂无评论...
验证码 换一张
取 消