strings.xml中的Android`templateMergeStrategy`

前端之家收集整理的这篇文章主要介绍了strings.xml中的Android`templateMergeStrategy`前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
templateMergeStrategy属性Android资源中的含义是什么?

例如在Google Maps API密钥文件

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

我本来期望一个简单的谷歌(或duckduckgo)搜索给我结果,但不幸的是它似乎只给了我谷歌地图API问题.

不幸的是,该部门也缺乏Android Developer Docs on “String Resources”.

change log

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.

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

猜你在找的XML相关文章