Your next career begins with
Save 50% off your seat in our next iOS Bootcamp. Limited time only. Sessions start April 3.
Beginning ViewPagers
Learn how to use one of the most common Android Widgets, the ViewPager. ViewPagers are fundamental because they allow you to display different kinds of views using a pattern which is familiar to most users. By Aldo Olivares.
Sign up/Sign in
With a free Kodeco account you can download source code, track your progress, bookmark, personalise your learner profile and more!
Create accountAlready a member of Kodeco? Sign in
Sign up/Sign in
With a free Kodeco account you can download source code, track your progress, bookmark, personalise your learner profile and more!
Create accountAlready a member of Kodeco? Sign in
Sign up/Sign in
With a free Kodeco account you can download source code, track your progress, bookmark, personalise your learner profile and more!
Create accountAlready a member of Kodeco? Sign in
Learning path
This is part of the Android User Interfaces learning path. View path.
Who is this for?
Beginner Android developers who are interested in learning how to use ViewPagers properly by creating a fun app that displays a list of celebrities. This course expects you to be familiar with Android Studio and Kotlin programming.
Covered concepts
- Implement a Swipeable Screen
- Listen for Page Changes
- Implement a FragmentStateAdapter
- RTL Support
Learn about the ViewPager and why it is so useful when building android apps.
The very first step towards a working ViewPager is to implement a swipeable screen. In this episode, learn how to change the layout that will hold your widget.
Implement a FragmentStateAdapter; this allows you to display different fragments on each of the pages of your ViewPager.
Learn more about the FragmentStateAdapter you created in the previous episode.
Learn how to listen for page changes in order to take appropriate action such as displaying a toast or notification.
Tabs are everywhere. Learn how to add tabs to the top of your app.
RTL stands for right to left. There are many languages that must be read right to left so it is very important to learn how to support RTL in your ViewPager.
All videos. All books.
One low price.
A Kodeco subscription is the best way to learn and master mobile development — plans start at just $19.99/month! Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.
Learn more