How to View Android API Code

2019-08-05 05:18发布

I would like to see the source code for the API in the android platform. For example see what is under android.widget.ImageView.Class. However I get source code not found in eclipse.

标签: android
3条回答
Lonely孤独者°
2楼-- · 2019-08-05 05:40

Here is link for Android source and another link for repository. You need to attach source code for your project to see the source in eclipse.

查看更多
我只想做你的唯一
3楼-- · 2019-08-05 05:50

You can find ImageView source code here: http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/2.2_r1.1/android/widget/ImageView.java

The project source code is not going to visible in eclipse unless you've got your self a copy of the source. It is not included in the SDK by default.

查看更多
仙女界的扛把子
4楼-- · 2019-08-05 05:54

Source code for all API packages(including their classes and methods) can be found at Android API packages Source code

Main domain/website is: android.googlesource.com

In the first hyperlink, among all the packages mentioned at developer.android.com/reference/packages.html, you will only find source code for those packages that start with name android.

查看更多
登录 后发表回答