Adding documentation for generated R.java files in Android Studio

 ̄綄美尐妖づ 提交于 2020-01-13 10:14:11

问题


In my Gradle script, I have created a Javadoc task that generates documentation for my java files and for the auto-generated R.java, so that it creates links for my XML resources. I am using Doclava and even the @attrworks as expected when referencing XML resources.

However, when I add comments in my original XML files in order to document them, they are lost in the process of generating the R.java file and they are replaced by the default documentation.

Is there a way to document my XML resources and make the documentation appear in the resulting javadoc?

来源:https://stackoverflow.com/questions/35430792/adding-documentation-for-generated-r-java-files-in-android-studio

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!