I recently came across the android RecyclerView
which was released with Android 5.0 and it seems that RecyclerView
is just an encapsulated traditional ListView
with the ViewHolder pattern incorporated into it, which promotes the reuse of the view, rather than creating it every single time.
What are the other benefits of using RecyclerView
?
If both have the same effect in terms of performance, why would one prefer RecyclerView` ?
Edit
I found that people have asked similar question and the answers are not conclusive, adding them here for record keeping.
RecyclerView
is much faster and more versatile with a much better API. Things like animating the addition or removal of items are already implemented in theRecyclerView
without you having to do anything. There is no question about it, throw yourListView
in the trash can, theRecyclerView
is here to steal the show. – Jeunesse