2

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
  • 23,150
  • 26
  • 96
  • 124

2 Answers2

4

that's javadoc. You should type

/**
 *
 */

before the method declaration

Here you can find more information

Blackbelt
  • 156,034
  • 29
  • 297
  • 305
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
  • 957
  • 7
  • 23