Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add the recyclerview to project

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

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

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

like image 350
Alexander Golubev Avatar asked Jun 03 '16 10:06

Alexander Golubev


People also ask

What is RecyclerView in Android studio with example?

RecyclerView is the ViewGroup that contains the views corresponding to your data. It's a view itself, so you add RecyclerView into your layout the way you would add any other UI element. Each individual element in the list is defined by a view holder object.

What is RecyclerView adapter in android?

The RecyclerView class extends the ViewGroup class and implements ScrollingView interface. It is introduced in Marshmallow. It is an advanced version of the ListView with improved performance and other benefits.


1 Answers

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

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

search any lib.

example search "recycler"

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

like image 87
Nishant Pardamwar Avatar answered Oct 26 '22 22:10

Nishant Pardamwar