0

I read about ListView and RecycleView. I understood that RecycleView is a more advanced and flexible version of ListView. So like ListFragment for listView, Is there any inbuilt fragment for RecyleView? If i need a RecycleView inside a fragment then what is the proper way to implement it?

Hari Krishnan
  • 5,992
  • 9
  • 37
  • 55

2 Answers2

1

Is there any inbuilt fragment for RecyleView?

No. there isn't one.

Unlike ListFragment for listview, there isn't any default implementation provided for RecyclerView. And RecyclerView is available through the support-v7 library and it's not bundled with the Android source.

For difference between RecyclerView and ListView check this:

Recyclerview vs ListView

Here are some good resources you will like to read:

Creating Lists and Cards

Using the RecyclerView

And an example:

RecyclerViewFragment

jayeshsolanki93
  • 2,096
  • 1
  • 20
  • 37
0

Check out these tutorials

Using the recycler view

Multiple views in recycler view

Jude Fernandes
  • 7,437
  • 11
  • 53
  • 90