我想创建一个多语言的 android 应用程序。
有没有办法检测用户喜欢什么语言?
是否有推荐的方法来管理 Android 上的多种语言,或者我应该重新发明轮子?
最佳答案
是的,有一种管理多种语言的推荐方法
Multilanguage support is easy done for android. Create a new values directory for the language with the suffix of the language code. For german: values-de or french: values-fr than copy your string.xml into that and translate each entry. Thats all you need.
如果您遵循建议,则自动检测用户喜欢哪种语言。
读一读:
http://developer.android.com/guide/topics/resources/localization.html
关于android - 如何创建多语言安卓应用程序?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4259128/