How to find easily the source of an android class

前端 未结 6 1022
别那么骄傲
别那么骄傲 2021-01-02 12:56

I know I can access android source code from https://android.googlesource.com, but it\'s hard to select the right git repo if I only know the package and the name of an andr

6条回答
  •  生来不讨喜
    2021-01-02 13:39

    Most things you'll want to see can be found under the frameworks/base repo. This includes pretty much all the public and private API classes that make up the Android Java framework.

    If you want to be able to browse the source from within Eclipse, you can follow this guide: http://blog.michael-forster.de/2008/12/view-android-source-code-in-eclipse.html

    Finally, the Android SDK Reference Search extension for Chrome lets you browse the public API by typing ad into the URL bar, and it adds a convenient "view source" link to each Javadoc page.

提交回复
热议问题