Android ViewPager allows the user to flip left and right through pages of data. It mostly used with Fragment, which is a convenient way to supply and manage the lifecycle of each page. ViewPager uses a PagerAdapter that generates the pages that the view shows. In this example, we have used ViewPager without Fragments.