Learning Android Development

Is ViewPager2 just a RecyclerView?

Can one replace the other totally?

Photo by Arun Anoop on Unsplash

When ViewPager2 is introduced, it is clearly mentioned it is build using RecyclerView. I hasn’t try it at that time, as in my mind, well, can’t we just use RecyclerView then, and not needing to have ViewPager 2 at all?

--

--

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