如何将recyclerview添加到项目中 [英] How to add the recyclerview to project

查看:159
本文介绍了如何将recyclerview添加到项目中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试导入android.support.v7.widget.RecyclerView,但它没有用,也添加了

tried to import android.support.v7.widget.RecyclerView, but it didn't work, added also

compile 'com.android.support:recyclerview-v7:23.1.1'

到build.gradle,但是它没有帮助

to build.gradle, but it didn't help either

推荐答案

你也可以从android studio菜单添加lib / dependencies。

you can also add lib/dependencies from android studio menu.

点击构建 - >编辑库和依赖关系
然后点击右侧的 + 按钮。

click on "Build" -> "Edit Libraries and Dependencies". then click on "+" button on right side.

搜索任何lib。

示例搜索recycleler

example search "recycler"

然后从列表中选择 com.android.support:recyclerview-v7:xxx 和你的完成。

then select "com.android.support:recyclerview-v7:x.x.x" from list and your done.

这篇关于如何将recyclerview添加到项目中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆