Up next

Android tutorial (2018) - 52- Implement Swipe Views using ViewPager

8 Views· 14 Aug 2019
ITCOURSES
ITCOURSES
5 subscribers
0

In this video we are going to learn about how to create swipe views in android application.

We can create swipe view in android application using the ViewPager widget which is available in the support library. ViewPager is a layout widget which is capable of holding many child views and each child view represent a separate page.

To insert child views that represent each page we need to hook up the viewpager to a pager adapter. You have two options for the viewpager adapter

FragmentPagerAdapter :
This is the best option if there is only a limited number of pages to show.
FragmentStatePagerAdapter:
You can use this adapter if there is large number of pages or the number of pages are indeterminate.

In this video we are going to create a simple example that demonstrate how to use the FragmentStatePagerAdapter for displaying a large number of pages. Each page is representd using a Fragment.

Like my Facebook page : https://www.facebook.com/codeglympse
Subscribe My YouTube channel : http://www.youtube.com/ticoontechnologies

Show more
100% online learning from the world's best universities, organisations and Instructors

 0 Comments sort   Sort By


Up next