2
有沒有辦法如何添加評論/說明/文檔到android資源參考?我知道的唯一方法是使用標準的XML評論。這顯然不理想。Android的JavaDoc 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>
感謝,文檔屬性的作品。但它仍然沒有集成到androidstudio show-javadoc-autocomplete功能中。這是好的中間步驟。 – Wooff