Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Design Support Library: NavigationView source code

I have searched several hours over the past few days for the complete source code of Android's design support library. I have found source code mirrored from the official Google repository:

https://github.com/android/platform_frameworks_support/tree/master/design

However, I have yet to find the source code for android.support.design.widget.NavigationView. The jar file for the library contains a NavigationView.class, but has no source attached.

How should I find the source of this class? Is the code possibly not released to the public?

like image 951
Dia McThrees Avatar asked Jul 28 '15 19:07

Dia McThrees


1 Answers

If you download the Android 6.0 source code from your SDK Manager, you will find the source for NavigationView in:

$ANDROID_SDK/sources/android-23/android/support/design/widget

where $ANDROID_SDK is wherever you have installed the Android SDK.

My guess is that this matches the 23.0.0 version of the Design Support library. I do not know if patches (e.g., 23.0.1) will have their source show up here or not. And, for all I know, what is here in the source code is older than 23.0.0. Google's packaging of source code for the support libraries could use some love.

like image 141
CommonsWare Avatar answered Sep 27 '22 17:09

CommonsWare