ViewPagerComposeExamples
Simple examples demonstrating the use of the official ViewPager for Jetpack Compose. The project uses the Navigation Component for navigating between the examples.
Currently the project contains 7 examples for Horizontal and Vertical ViewPager.
Horizontal Pager Examples
Simple Example |
With buttons |
![](/screenshots/horizontal_pager_example.png) |
![](/screenshots/horizontal_pager_with_buttons.png) |
With dots indicator |
with lines indicator |
![](/screenshots/horizontal_pager_with_dots_indicator.png) |
![](/screenshots/horizontal_pager_with_lines_indicator.png) |
With Tabs |
with Scrollable Tabs |
![](/screenshots/tabs_with_horizontal_pager.png) |
![](/screenshots/scrollable_tabs_with_horizontal_pager.png) |
Vertical Pager Example
Simple Example |
![](/screenshots/vertical_pager_example.png) |
- Kotlin - First class and official programming language for Android development.
- Jetpack Compose - Android’s modern toolkit for building native UI.
- Navigation Compose - Navigation Compose is a framework for navigating between composables while taking advantage of the Navigation component’s infrastructure and features.
- Material Components for Android - Modular and customizable Material Design UI components for Android.