Android Studio安装名称本地化(安装名称国际化 Ap
作者:
龙行_1729 | 来源:发表于
2019-05-20 18:27 被阅读0次
一、选中res-〉values-〉右键-〉Values resource file
二、选择左侧列表的Local,默认情况下语言列表中是空的,展开语言列表需要点击“>>”

2.1 选择Local事例图

2.2 请选择一种语言
三、选择语言并给文件命名为strings,如选择中文

选择语言并将文件命名为:strings
注:文件名称必须与英文保持一致!
四、在新生成的XML文件中写入本地化游戏名称。如“步骤三”中选择了中文简体,生成了“strings.xml (zh-rCN)”文件

strings.xml (zh-rCN)

编辑文件内容,输入<string name="app_name">游戏名称</string>
注:app_name即为游戏内获取游戏名称的key
五、AndroidManifest.xml文件中的游戏名称引用

AndroidManifest.xml文件中的游戏名称引用
本文标题:Android Studio安装名称本地化(安装名称国际化 Ap
本文链接:https://www.haomeiwen.com/subject/dkklzqtx.html
网友评论