What is "android-recyclerview"

With the arrival of the new Android L, Google brought programmers new tools for application development, among them the Recyclerview, which is a more advanced and flexible version of ListView. It is recommended to use the widget when possessing a lot of data whose elements change during execution based on user action or network events. Recyclerview symbolizes a container, to receive a large set of data, shown to the user in the form of a list of items. It has more efficiency than its predecessor, Listview, and according to Google, simplifies the display and handling of large data sets offering:

  • Managers of layout to position items
  • Standard animations for common item operations such as item removal or addition.

Example

The following code example demonstrates how to add Recyclerview to a layout XML:

<android.support.v7.widget.RecyclerView
    android:id="@+id/my_recycler_view"
    android:scrollbars="vertical"
    android:layout_width="match_parent"
    android:layout_height="match_parent"/>

Reference