Changes

Working with the RecyclerView and CardView Widgets

4 bytes removed, 20:37, 14 January 2019
no edit summary
 
The RecyclerView and CardView widgets work together to provide scrollable lists of information to the user in which the information is presented in the form of individual cards. Details of both classes will be covered in this chapter before working through the design and implementation of an example project.
== An An Overview of the RecyclerView ==
Much like the ListView class outlined in the chapter entitled [[Working with the Floating Action Button and Snackbar]], the purpose of the RecyclerView is to allow information to be presented to the user in the form of a scrollable list. The RecyclerView, however, provides a number of advantages over the ListView. In particular, the RecyclerView is significantly more efficient in the way it manages the views that make up a list, essentially reusing existing views that make up list items as they scroll off the screen instead if creating new ones (hence the name “recycler”). This both increases the performance and reduces the resources used by a list, a feature that is of particular benefit when presenting large amounts of data to the user.