What is ViewPager in Android


ViewPager in Android allows the user to flip left and right through pages of data. In our android ViewPager application we’ll implement a ViewPager that swipes through three views with different images and texts.

Android ViewPager widget is found in the support library and it allows the user to swipe left or right to see an entirely new screen.

ViewPagers have built-in swipe gestures to transition through pages, and they display screen slide animations by default, so you don't need to create any. ViewPagers use PagerAdapters as a supply for new pages to display, so the PagerAdapter will use the fragment class that you created earlier.

Comments

Popular posts from this blog

Difference Between View and ViewGroup

How to remove ActionBar from Android Activity