Summary
At the end of this chapter, you will know how to implement an Adapter, how to handle different types of items in lists, and how and why we apply the ViewHolder
pattern. You first learned this along with the ListView
class and manually implemented the recycling view techniques. As a result, you will be able to fully understand the features and how RecyclerView
works in showing different ways to display the items and implement item click listeners.
In the next chapter, we will discover a new component introduced along with RecyclerView
in Android 5.0— CardView
. We will combine this with RecyclerView
to have a flexible and professional-looking list of cards.