

Layout managers are all based on the library's Use one of the layout managers provided by the RecyclerView library, or you canĭefine your own. The layout manager arranges the individual elements in your list. The RecyclerView requests those views, and binds the views to their data,īy calling methods in the adapter. The view holder is created, the RecyclerView binds it to its data. The view holder is created, it doesn't have any data associated with it. Into your layout the way you would add any other UI element.Įach individual element in the list is defined by a view holder object.

It's a view itself, so you add RecyclerView Several different classes work together to build your dynamic list.Ĭorresponding to your data.

In this page, RecyclerView in code font always means the class Note: Besides being the name of the class, RecyclerView is also the name of Reuse vastly improves performance, improving your app's responsiveness and RecyclerView reuses the view for new items that have scrolled onscreen. Item scrolls off the screen, RecyclerView doesn't destroy its view. The data and define how each item looks, and the RecyclerView libraryĭynamically creates the elements when they're needed.Īs the name implies, RecyclerView recycles those individual elements. RecyclerView makes it easy to efficiently display large sets of data.
