getting list of languages supported by android keyboard

依然范特西╮ 提交于 2019-12-18 05:02:20

问题


I need to display the list of the 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 ?.


回答1:


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



来源:https://stackoverflow.com/questions/6579046/getting-list-of-languages-supported-by-android-keyboard

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!