【问题标题】:How can i create a documentation to my classes and methods in Android Studio? [duplicate]如何在 Android Studio 中为我的类和方法创建文档? [复制]
【发布时间】:2014-11-27 21:24:42
【问题描述】:

我是 android 世界的新手,我想知道是否有办法为我的班级提供文档,所以当我将鼠标悬停在班级对象上时,我将能够检索如下图所示的描述

在视觉工作室中,我所要做的就是这样:

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

我试过了,还是不行

【问题讨论】:

    标签: android eclipse ide documentation android-studio


    【解决方案1】:

    您所说的功能称为 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){
    ......
    

    详情here。

    【讨论】:

    • 谢谢 工作正常这是您第一次 +1 欢迎来到 Stackoverflow
    【解决方案2】:

    那是javadoc。你应该输入

    /**
     *
     */
    

    在方法声明之前

    Here你可以找到更多信息

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2022-09-24
    • 1970-01-01
    • 2019-02-20
    • 1970-01-01
    • 1970-01-01
    • 2018-01-13
    • 2012-01-06
    • 2021-06-18
    相关资源
    最近更新 更多