1

I'm new to android world, i was wondering if there is a way to a documentation to my class, so when i hover on the class object i will be able to retrieve the description like in the following image

enter image description here

in visual studio all i have to do is something like this :

    /// <summary>
    /// This is the Documentation 
    /// </summary>

i have tried this and it didn't work

Mina Gabriel
  • 19,881
  • 24
  • 93
  • 121

2 Answers2

3

Feature you are talking about called JavaDoc:

/**
* This method adds two numbers
* @param a my param a
* @param b my param b
* @return result description
*/
public int add(int a, int b){
......

Details here.

LazyCat01
  • 924
  • 7
  • 22
3

that's javadoc. You should type

/**
 *
 */

before the method declaration

Here you can find more information

Blackbelt
  • 152,872
  • 27
  • 286
  • 297