简体   繁体   English

我在哪里可以找到设计支持库的更新源代码?

[英]Where can i find the updated source code of design support library?

I searched a lot on web and SDK directory for the source code of design support library.我在 web 和SDK目录上搜索了很多设计支持库的源代码。 I found some related resources but it seems they are not updated.我找到了一些相关资源,但似乎没有更新。 I found the source of design support library at the links given below, but it is different from library source code and classes i am using in my project.我在下面给出的链接中找到了设计支持库的来源,但它与我在项目中使用的库源代码和类不同。

https://github.com/android/platform_frameworks_support/tree/master/design/src/android/support/design/widget https://github.com/android/platform_frameworks_support/tree/master/design/src/android/support/design/widget

https://android.googlesource.com/platform/frameworks/support/+/master/design/src/android/support/design/widget/ https://android.googlesource.com/platform/frameworks/support/+/master/design/src/android/support/design/widget/

Work-space snap.工作区快照。

在此处输入图片说明

But there are less classes on web than project.但是网络上的课程比项目少。 As it is a compressed jar, that's why can't browse its code.因为它是一个压缩的 jar,所以不能浏览它的代码。
Thanks in advance and any suggestions are welcome.提前致谢,欢迎提出任何建议。

You will find the source code on your hard drive, at least if you have the Android Repository installed.你会在你的硬盘上找到源代码,至少如果你安装了 Android Repository。

Go to $ANDROID_SDK/extras/android/m2repository/com/android/support/design/$VERSION , where $ANDROID_SDK is wherever your Android SDK is installed and $VERSION is some version of the library.转到$ANDROID_SDK/extras/android/m2repository/com/android/support/design/$VERSION ,其中$ANDROID_SDK是安装 Android SDK 的位置,而$VERSION是库的某个版本。 In there, you will find a design-$VERSION-sources.jar file for the same $VERSION , which contains your source code.在那里,你会发现一个design-$VERSION-sources.jar为同一文件$VERSION ,其中包含你的源代码。

The source code for the design support library has not been updated in the public repositories in a while (9 weeks ago as of October 21st, 2015).公共存储库中的设计支持库的源代码有一段时间没有更新(截至 2015 年 10 月 21 日,9 周前)。

This means that the source is not currently publicly available on the web, and the best you can if you want to view it on the web is patiently wait.这意味着该源目前未在网络上公开提供,如果您想在网络上查看它,请耐心等待。

您可以在以下地址克隆 repo: https : //android.googlesource.com/platform/frameworks/support/

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM