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
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With