In this chapter, we learned how to add dynamic lists to our application. We also covered the performance issues that we might face if we do not do things in the right way, and we evolved our example from the good old ListView
and ListActivity
to the new and more efficient RecyclerView
.
Additionally, we introduced a new LayoutManager
, which is able to manage items with different sizes, and the ability to draw decorations before or after the RecyclerView
child items are drawn.
For the time being, the source of data for the lists is quite static, but in upcoming chapters we will see how to make it more dynamic and have different data sources.