The RecyclerView widget is a more advanced and flexible version of ListView. This widget is a container for displaying large data sets that can be scrolled very efficiently by maintaining a limited number of views. Use the RecyclerView widget when you have data collections whose elements change at runtime based on user action or network events.
It was introduced in Android Lollypop (5.0) and you can read more about it here.
I have modified the sample and also the library to work with a RecyclerView instead of a ListView.
Just Playing around with RecyclerView.
The XML usage is the same as shown here