Android Studio 显示函数用法提示悬浮窗,解决fetching documentation问题

Eclipse有一个很好的功能,就是当代码调用某个android API时,鼠标移到对应的函数或者方法上,就会自动有一个悬浮窗提示该函数的说明(所包含的参数含义,方法功能)。但是在Android Studio鼠标移到函数上,发现悬浮窗不出来了。

Android Studio如何查看函数的说明呢。选中要查看的函数,然后按F2,悬浮窗就出来了。

Android Studio 显示函数用法提示悬浮窗,解决fetching documentation问题_第1张图片


另一个问题,按F2后,Android Studio提示帮助文档一直显示:fetching documentation。


Android Studio 显示函数用法提示悬浮窗,解决fetching documentation问题_第2张图片


尝试查看api文档时发现android-sdk-windows下没有docs文件夹,且Android SDK Manager的API 16版本下没有"Documentation for Android SDK"。


在最高版本的API level下是有"Documentation for Android SDK"的,下载后切换API level即可看到对应的api文档。

Android Studio 显示函数用法提示悬浮窗,解决fetching documentation问题_第3张图片


或者已经有了document,但是还是一直fetching documentation,可能是android studio配置文件没有配置好,此处所指的配置文件在:user/.AndroidStudio/config/options下的 jdk.table.xml文件。


<javadocPath>
    <root type="composite">
	//此处需要改成:$USER_HOME$/adt-bundle-windows-x86-20130917/sdk/docs/reference/
        <root type="simple" url="http://developer.android.com/reference/" />
    </root>
</javadocPath>


你可能感兴趣的:(for,documentation,An,Fetching,documentati,javadocPath,悬浮窗提示,jdk.table.xml)