ListView/RecyclerView

  1. The very important view holder design pattern in ListView was optional that means you have to code for it. In RecyclerView it is inbuilt so need not to code.
  2. View holder design patterns improve the performance of ListView and RecycerView.
  3. RecyclerView is based on layout manager, By using different layout manager we can achieve a Vertical list, Horizontal list, Grid View, Staggered Gridview.
  4. ItemDecorator gives the facility to add some decoration in RecyclerView and we can add a divider line in RecyclerView between rows, In ListView we have to write manually item decoration.
  5. There are notifiers for particular list elements, like notifyItemInserted(), notifyItemRemoved() or even notifyItemChanged() and more.

--

--

--

Senior Android App Developer | Startup | Product base | Java | Kotlin | MVVM | Architecture components | Android Blogger

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Aalishan Ansari

Aalishan Ansari

Senior Android App Developer | Startup | Product base | Java | Kotlin | MVVM | Architecture components | Android Blogger

More from Medium

Quest to a refined Outdoor Experience Android App (Strava and Relive inspired) — Part 3

CameraX in Android

Intent in Android

Using DiffUtil in RecyclerView