• <small id='SSEOZ'></small><noframes id='SSEOZ'>

    <tfoot id='SSEOZ'></tfoot>

      <i id='SSEOZ'><tr id='SSEOZ'><dt id='SSEOZ'><q id='SSEOZ'><span id='SSEOZ'><b id='SSEOZ'><form id='SSEOZ'><ins id='SSEOZ'></ins><ul id='SSEOZ'></ul><sub id='SSEOZ'></sub></form><legend id='SSEOZ'></legend><bdo id='SSEOZ'><pre id='SSEOZ'><center id='SSEOZ'></center></pre></bdo></b><th id='SSEOZ'></th></span></q></dt></tr></i><div id='SSEOZ'><tfoot id='SSEOZ'></tfoot><dl id='SSEOZ'><fieldset id='SSEOZ'></fieldset></dl></div>
      <legend id='SSEOZ'><style id='SSEOZ'><dir id='SSEOZ'><q id='SSEOZ'></q></dir></style></legend>

        <bdo id='SSEOZ'></bdo><ul id='SSEOZ'></ul>

        如何创建多语言安卓应用程序?

        How can I create a multilingual android application?(如何创建多语言安卓应用程序?)

            <tfoot id='Al815'></tfoot>
              <i id='Al815'><tr id='Al815'><dt id='Al815'><q id='Al815'><span id='Al815'><b id='Al815'><form id='Al815'><ins id='Al815'></ins><ul id='Al815'></ul><sub id='Al815'></sub></form><legend id='Al815'></legend><bdo id='Al815'><pre id='Al815'><center id='Al815'></center></pre></bdo></b><th id='Al815'></th></span></q></dt></tr></i><div id='Al815'><tfoot id='Al815'></tfoot><dl id='Al815'><fieldset id='Al815'></fieldset></dl></div>

                <bdo id='Al815'></bdo><ul id='Al815'></ul>

              • <small id='Al815'></small><noframes id='Al815'>

                  <tbody id='Al815'></tbody>
                <legend id='Al815'><style id='Al815'><dir id='Al815'><q id='Al815'></q></dir></style></legend>
                  本文介绍了如何创建多语言安卓应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我想创建一个多语言的 android 应用程序.

                  I would like to create a multilingual android application.

                  有没有办法检测用户喜欢什么语言?

                  Is there a way to detect what language the user prefers?

                  是否有推荐的方法来管理 Android 上的多种语言,或者我应该重新发明轮子?

                  Is there a recommended way to manage multiple languages on Android or should I reinvent the wheel?

                  推荐答案

                  是的,有一种管理多语言的推荐方法

                  Yes, there is a recommended way to manage multiple languages

                  多语言支持很容易为 android 完成.使用语言代码的后缀为该语言创建一个新的值目录.对于德语:values-de 或法语:values-fr,而不是将您的 string.xml 复制到其中并翻译每个条目.这就是你所需要的.

                  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.

                  android 支持多种语言吗?

                  如果您遵循建议,则自动检测用户喜欢哪种语言.

                  Providing you follow the recommendations, detecting which language the user prefers is automatic.

                  读一读:

                  http://developer.android.com/guide/topics/resources/本地化.html

                  这篇关于如何创建多语言安卓应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  script.sh: line 1: ./gradlew: No such file or directory on Jenkins(script.sh:第 1 行:./gradlew:Jenkins 上没有这样的文件或目录)
                  Arduino: using Serial and Software Serial with bluetooth module(Arduino:使用带有蓝牙模块的串口和软件串口)
                  Access native serial port on Android(在Android上访问本机串口)
                  Android: USB Communication Android lt;-gt; External Device(Android:USB通信Androidlt;-gt;外接设备)
                  Sending commands from a PC to an Android phone - via physical connection (USB, Serial, etc)(从 PC 向 Android 手机发送命令 - 通过物理连接(USB、串行等))
                  Android: RS232 Serial Communication with android device(Android:与安卓设备的RS232串行通信)

                  1. <tfoot id='Xfy9T'></tfoot>
                    <i id='Xfy9T'><tr id='Xfy9T'><dt id='Xfy9T'><q id='Xfy9T'><span id='Xfy9T'><b id='Xfy9T'><form id='Xfy9T'><ins id='Xfy9T'></ins><ul id='Xfy9T'></ul><sub id='Xfy9T'></sub></form><legend id='Xfy9T'></legend><bdo id='Xfy9T'><pre id='Xfy9T'><center id='Xfy9T'></center></pre></bdo></b><th id='Xfy9T'></th></span></q></dt></tr></i><div id='Xfy9T'><tfoot id='Xfy9T'></tfoot><dl id='Xfy9T'><fieldset id='Xfy9T'></fieldset></dl></div>

                        <small id='Xfy9T'></small><noframes id='Xfy9T'>

                          <legend id='Xfy9T'><style id='Xfy9T'><dir id='Xfy9T'><q id='Xfy9T'></q></dir></style></legend>
                            <tbody id='Xfy9T'></tbody>
                            <bdo id='Xfy9T'></bdo><ul id='Xfy9T'></ul>