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.
ViewPager
s 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. ViewPager
s use PagerAdapter
s as a supply for new pages to display, so the PagerAdapter
will use the fragment class that you created earlier.
Comments
Post a Comment