문제

Is it possible to see the code on how the APIs in Android work?
Say, I want to see the implementation of method setContentView() or setStroke().
I am wondering if the implementation of these APIs are exposed.

도움이 되었습니까?

해결책 2

If you use a Chrome-flavored browser, you can install the Android SDK Search extension, which:

  • Adds an ad search to the "omnibox" (a.k.a., address/search bar in Chrome), so ad AdapterView would take you right to the AdapterView documentation

  • Adds a "(view source)" link to the JavaDocs for each class that brings up the source code to that class

다른 팁

Android is open source. You can find all the code from here: http://source.android.com/

At this site you can find and browse the source code for all Android versions: http://grepcode.com/project/repository.grepcode.com/java/ext/com.google.android/android/

This has already been answered here: https://stackoverflow.com/a/19416821/977090

Basically, just install "Sources for Android SDK" from Android SDK Manager.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top