【发布时间】:2017-10-08 17:28:30
【问题描述】:
我正在开发一个使用 RecyclerView 组件的应用程序。我正在检查我的 build.gradle 文件,它有这些依赖项:
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.android.support:cardview-v7:25.3.1'
compile 'com.android.support.constraint:constraint-layout:1.0.0-beta5'
compile 'com.android.support:design:25.3.1'
testCompile 'junit:junit:4.12'
compile 'com.android.support:support-v4:25.3.1'
项目中没有“com.android.support:recyclerview-v7:25.3.1”,但我有一个 RecyclerView (android.support.v7.widget.RecyclerView)。
以上哪些包还包含 RecyclerView?还是我对支持库包有什么不明白的地方?
【问题讨论】:
-
你可以很容易地在 google 中找到它。否则,使用 Android Strudio 中的设计视图将其添加到视图中,该视图会为您添加库。
-
我有理由相信这是编译 'com.android.support:appcompat-v7:25.3.1' 的更多信息,请访问developer.android.com/training/material/lists-cards.html
标签: android android-recyclerview android-support-library