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

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

问题描述

当我在某个支持库(例如ActionBarActivity)的类中使用Android Studio中的命令快速文档"时,IDE不会显示该类的文档.如果我在Android API 19(例如Activity)的某个类中使用它,则IDE会显示完整的文档,如

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

必要时重建项目,现在可以使用doc. 在android studio 2.0预览版4上进行了测试.

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

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

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