问题
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 @attr
works 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