且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在android studio中打开android文档和代码示例

更新时间:2022-12-22 10:09:00

首先,您需要确保将文档添加到 Android Studio.

First you need to make sure the documentation is added to Android Studio.

转到File -> Project Structure.在 Platform Settings 标题下,添加或选择一个 Android 平台.转到 Documentation Paths 选项卡并确保在那里添加了指向您的 SDK 文档文件夹的路径 - 它应该是 [SDK]\docs\reference,其中 [SDK] 是您的 SDK 安装的完整路径.如果没有,请手动添加.

Go to File -> Project Structure. Under the Platform Settings heading, add or select an Android Platform. Go to the Documentation Paths tab and make sure the path to your SDK's documenation folder is added there - it should be [SDK]\docs\reference, where [SDK] is the full path to your SDK installation. If it is not there add it manually.

完成此操作后,当您的光标位于要显示其帮助的项目上时,请使用 Ctrl+F1.

Once this is done, use Ctrl+F1 while your cursor is on the item you want to display help for.

示例尚未移植到 Android Studio,但我相信 google 会在某个时候解决它.现在按照 androidika 评论中的说明进行操作(您需要安装 Eclipse 的副本).

The samples have not been ported to Android Studio yet, but I'm sure google will get around to it at some point. For now follow the instructions in the comments by androidika (you will need a copy of Eclipse installed).