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?
Asked
Active
Viewed 369 times
0
-
check this https://developer.android.com/samples/RecyclerView/src/com.example.android.recyclerview/RecyclerViewFragment.html – jayeshsolanki93 Jul 08 '17 at 14:37
-
isn't that a custom fragment ? – Hari Krishnan Jul 08 '17 at 17:08
2 Answers
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:
Here are some good resources you will like to read:
And an example:

jayeshsolanki93
- 2,096
- 1
- 20
- 37