RecyclerView in Android


RecyclerView
and CardView are new views presented by Google in the Android L Developer Preview release.

The main difference in RecyclerView compared to the ListView is that it doesn’t care about the views. It only cares about the data and uses other components to handle views, animations, etc (its own subclasses). It is also made to be a lot more flexible thanListView, which means that it doesn’t necessarily displays items as a list, but its highly customizable.

capture1

These are important;

RecyclerView.Adapter

RecyclerView.ViewHolder

RecyclerView.LayoutManager

        *(LinearLayoutManager,GridLayoutManager,StaggeredGridLayoutManager)

RecyclerView.ItemAnimator

RecyclerView.ItemDecoration

This sites may be useful;

http://blog.lovelyhq.com/creating-lists-with-recyclerview-in-android/

http://www.vogella.com/tutorials/AndroidRecyclerView/article.html