shihpeng
shihpeng

Reputation: 5381

Where to find the source codes of the Android UI components?

I believe that all the source code in the Android framework could be found in https://android.googlesource.com, but I cannot find the source code of the UI components there, e.g., android.view.View, widgets, etc.

Can somebody tell me where the code is?

Upvotes: 1

Views: 2395

Answers (2)

user658042
user658042

Reputation:

Check https://android.googlesource.com/platform/frameworks/base/+/master/core/java/android/. There are a few subdirectories for view, widget and so on.

See the Github mirror. In case this goes down or is not up to date you have to download the Android source.

Upvotes: 3

Jarek Potiuk
Jarek Potiuk

Reputation: 20077

The easiest way I found to browse android code is http://google.com/codesearch . Try put "android TextView" for example and you will find it very quickly. It has the added benefit of very fast and efficient search.

Note - there is even "Android" link at the left side to limit your searches just to Android. Just noticed it ;).

Disclaimer: My friend from Google, Miguel, developed big part of it ;).

Upvotes: 2

Related Questions