如何在 Android Studio 中显示支持库的文档? [英] How to display the documentation for the support libraries inside Android Studio?

查看:23
本文介绍了如何在 Android Studio 中显示支持库的文档?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在来自支持库之一(例如 ActionBarActivity)的类中使用 Android Studio 中的快速文档"命令时,IDE 不显示该类的文档.如果我在 Android API 19(例如 Activity)中的一个类上使用它,IDE 会显示完整的文档,如 https://developer.android.com/reference/packages.html.

When I use the command 'Quick Documentation' in Android Studio in a class that comes from one of the support libraries (e.g. ActionBarActivity), the IDE does not show the documentation for the class. If I use it on one of the classes from, say, the Android API 19 (e.g. Activity), the IDE displays the complete documentation as is shown in the reference page on https://developer.android.com/reference/packages.html.

有什么方法可以将支持库的文档添加到 Android Studio 中,以便也可以通过快速文档"访问它们?

Is there any way to add the documentation for the support libraries to Android Studio so that they can be accessed through 'Quick Documentation' as well?

推荐答案

当Android Studio打开反编译的jar类后,点击右上角的下载..."蓝色链接,这将下载带有javadoc的jar并保存在:

When Android Studio has opened the decompiled jar class, click on "Download..." blue link at top right, this will download jar with javadoc and save it in :

/.ideaLibSources

/.ideaLibSources

如有必要,重建项目,现在文档可用.在 android studio 2.0 preview 4 上测试.

rebuild project if necessary, now doc is available. Tested on android studio 2.0 preview 4.

这篇关于如何在 Android Studio 中显示支持库的文档?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆