strings.xml中的Android`templateMergeStrategy` [英] Android `templateMergeStrategy` in strings.xml

查看:108
本文介绍了strings.xml中的Android`templateMergeStrategy`的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Android资源中的templateMergeStrategy属性是什么意思?

What does the templateMergeStrategy property mean in an Android resource?

例如在Google Maps API密钥文件中

e.g. in Google Maps API key file

<string name="google_maps_key" templateMergeStrategy="preserve" translatable="false">
    AIza.......some...secret...key...
</string>


我本来希望通过简单的google(或duckduckgo)搜索就能得到结果,但不幸的是,它似乎只给了我Google Maps API问题.


I would have expected a simple google (or duckduckgo) search to give me results, but unfortunately it only seems to give me Google Maps API questions.

很遗憾,字符串资源"上的Android开发者文档.

推荐答案

来自

使用它来覆盖Google Maps模板中的说明. 模板的后续运行始终使用以下命令更新说明: 用户当前的密钥库凭据.

Uses this to overwrite the instructions in the Google Maps template. Subsequent runs of the template always update the instructions with the user's current keystore credentials.

还更改了Google地图说明,以深入链接到Google 开发者控制台流程,这使得密钥生成更加容易.

Also changed the Maps instructions to deep link into a Google developer console flow, which allows for easier key generation.

这篇关于strings.xml中的Android`templateMergeStrategy`的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆