Comments on android

2

How can I put comments for the classes imported into the gradle to read them as a description when implementing a method of that class?

  

The question is from android, although I suppose it also applies to Intellij IDEA.

    
asked by pulga_sedentaria 30.11.2016 в 16:56
source

2 answers

1

I am afraid that you can not access the code of the libraries that you import with Gradle basically because you add the .AAR as dependency, but not the code itself.

From my point of view you have two solutions:

  • Clone the repository and add it as a library to your project, so you can access the classes.

  • Create your class that extends the class you are going to use from the     library whose dependency you have in Gradle and then overwrite those     methods

  • answered by 03.12.2016 / 17:04
    source
    1

    You are referring to what is known as Javadoc

    You can add comments before declaring your method with containers /** and **/

    After adding the comments you can go to Tools > Generate JavaDoc to generate the documentation for your application.

    link

    link

        
    answered by 30.11.2016 в 16:58