简体   繁体   English

Android设计支持库:NavigationView源代码

[英]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. 在过去几天中,我已经搜索了几个小时,以获取Android设计支持库的完整源代码。 I have found source code mirrored from the official Google repository: 我发现源代码来自官方的Google存储库:

https://github.com/android/platform_frameworks_support/tree/master/design 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. 但是,我还没有找到android.support.design.widget.NavigationView的源代码。 The jar file for the library contains a NavigationView.class, but has no source attached. 该库的jar文件包含NavigationView.class,但未附加任何源。

How should I find the source of this class? 我应该如何找到此类的来源? Is the code possibly not released to the public? 该代码可能不会向公众发布吗?

If you download the Android 6.0 source code from your SDK Manager, you will find the source for NavigationView in: 如果您从SDK Manager下载Android 6.0源代码,则会在以下位置找到NavigationView的源代码:

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

where $ANDROID_SDK is wherever you have installed the Android SDK. $ANDROID_SDK是您安装Android SDK的位置。

My guess is that this matches the 23.0.0 version of the Design Support library. 我的猜测是,这与Design Support库的23.0.0版本匹配。 I do not know if patches (eg, 23.0.1) will have their source show up here or not. 我不知道补丁(例如23.0.1)是否会在此处显示其来源。 And, for all I know, what is here in the source code is older than 23.0.0. 而且,据我所知,源代码中的内容早于23.0.0。 Google's packaging of source code for the support libraries could use some love. Google为支持库提供的源代码打包可能有些用处。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 未找到类Android支持设计小部件NavigationView - Class Not Found Android Support Design Widget NavigationView 在android.support.design.widget.NavigationView类中出现错误 - Getting Error in class android.support.design.widget.NavigationView 无法导入android.support.design.widget.NavigationView - Unable to import android.support.design.widget.NavigationView 错误膨胀类 android.support.design.widget.NavigationView - Error inflating class android.support.design.widget.NavigationView 'android.support.design.widget.NavigationView' 的 AIDE 未知类型'onNavigationItemSelectedListener' - AIDE Unknown type 'onNavigationItemSelectedListener' of 'android.support.design.widget.NavigationView' 获取错误膨胀类android.support.design.widget.NavigationView - Getting Error inflating class android.support.design.widget.NavigationView Android支持库-从NavigationView获取标题TextView - Android Support Library - get title TextView from NavigationView 添加android.support.design.widget.NavigationView时Java android崩溃 - Java android crash when add android.support.design.widget.NavigationView 在自定义视图上使用Android支持设计库 - Using Android support design library on custom view 实施Android设计支持库时遇到问题 - Trouble implementing Android Design Support Library
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM