【发布时间】:2015-05-27 11:46:59
【问题描述】:
有没有办法将评论/描述/文档添加到 android 资源参考?我知道的唯一方法是使用标准 XML 注释。这显然不理想。
类似特殊属性或特殊 javadoc 前置元素的东西
<resources>
<string documentation="Some useful information what does this resource means..." name="KEY" translatable="false">value</string>
</resources>
<resources>
<documentation forName="KEY">Some useful information what does this resource means...</documentation>
<string name="KEY" translatable="false">value</string>
</resources>
不理想但目前实用的方式:
<resources>
<!-- Some useful information about what this resource means... -->
<string name="KEY" translatable="false">value</string>
</resources>
【问题讨论】:
标签: android xml documentation javadoc android-resources