ViewPager2 (original) (raw)

Display Views or Fragments in a swipeable format.

Latest Update Stable Release Release Candidate Beta Release Alpha Release
May 14, 2024 1.1.0 - - -

AndroidX Dependencies

To use ViewPager2, add the following AndroidX dependency to your project'sbuild.gradle file:

Groovy

dependencies { implementation "androidx.viewpager2:viewpager2:1.1.0" }

Kotlin

dependencies { implementation("androidx.viewpager2:viewpager2:1.1.0") }

Feedback

Your feedback helps make Jetpack better. Let us know if you discover new issues or have ideas for improving this library. Please take a look at theexisting issuesin this library before you create a new one. You can add your vote to an existing issue by clicking the star button.

Create a new issue

See the Issue Tracker documentationfor more information.

Version 1.1.0

Version 1.1.0

May 14, 2024

androidx.viewpager2:viewpager2:1.1.0 is released. Version 1.1.0 contains these commits.

Important changes since 1.0.0

Version 1.1.0-rc01

May 1, 2024

androidx.viewpager2:viewpager2:1.1.0-rc01 is released with no notable changes since 1.1.0-beta02. Version 1.1.0-rc01 contains these commits.

Version 1.1.0-beta02

May 24, 2023

androidx.viewpager2:viewpager2:1.1.0-beta02 is released. Version 1.1.0-beta02 contains these commits.

API Changes

Bug Fixes

Version 1.1.0-beta01

August 4, 2021

androidx.viewpager2:viewpager2:1.1.0-beta01 is released. Version 1.1.0-beta01 contains these commits.

API Changes

Bug Fixes

Version 1.1.0-alpha01

April 1, 2020

androidx.viewpager2:viewpager2:1.1.0-alpha01 is released. Version 1.1.0-alpha01 contains these commits.

This release accompanies a change in RecyclerView 1.2.0-alpha02 by populating CollectionInfo and CollectionItemInfo that RecyclerView no longer provides by default. When updating to RecyclerView 1.2.0-alpha02 also update ViewPager2 to prevent Accessibility regressions.

New Features

Bug Fixes

Version 1.0.0

Version 1.0.0

November 20, 2019

androidx.viewpager2:viewpager2:1.0.0 is released with no changes from 1.0.0-rc01. Version 1.0.0 contains these commits.

Major features of 1.0.0

See the guide on using ViewPager2 to slide between Fragments.

Version 1.0.0-rc01

October 23, 2019

androidx.viewpager2:viewpager2:1.0.0-rc01 is released with no changes since 1.0.0-beta05. Version 1.0.0-rc01 contains these commits.

Version 1.0.0-beta05

October 9, 2019

androidx.viewpager2:viewpager2:1.0.0-beta05 is released. Version 1.0.0-beta05 contains these commits.

Bug fixes

Version 1.0.0-beta04

September 5, 2019

androidx.viewpager2:viewpager2:1.0.0-beta04 is released. The commits included in this version can be found here.

Bug fixes

Version 1.0.0-beta03

August 7, 2019

androidx.viewpager2:viewpager2:1.0.0-beta03 is released. The commits included in this version can be found here.

Bug fixes

Version 1.0.0-beta02

July 19, 2019

androidx.viewpager2:viewpager2:1.0.0-beta02 is released. The commits included in this version can be found here.

Bug fixes

Version 1.0.0-beta01

July 17, 2019

androidx.viewpager2:viewpager2:1.0.0-beta01 is released. The commits included in this version can be found here.

Bug fixes

Known issues

Version 1.0.0-alpha06

July 2, 2019

androidx.viewpager2:viewpager2:1.0.0-alpha06 is released. The commits included in this version can be found here.

This is our last planned alpha before freezing the API and moving to beta - please provide us with API feedback.

New features

API changes

Bug fixes

Version 1.0.0-alpha05

June 5, 2019

androidx.viewpager2:viewpager2:1.0.0-alpha05 is released. The commits included in this version can be found here.

New features

API changes

Bug fixes

Version 1.0.0-alpha04

May 7, 2019

androidx.viewpager2:viewpager2:1.0.0-alpha04 is released. The commits included in this version can be found here.

New features

API changes

Bug fixes

Version 1.0.0-alpha03

April 3rd, 2019

androidx.viewpager2:viewpager2:1.0.0-alpha03 is released. The commits included in this version can be found here.

New features

API changes

Bug fixes

Version 1.0.0-alpha02

March 13, 2019

androidx.viewpager2:viewpager2:1.0.0-alpha02 is released. The full list of commits included in this version can be found here.

New features

API changes

Bug fixes

Version 1.0.0-alpha01

February 7, 2019

androidx.viewpager2:viewpager2 1.0.0-alpha01 is released. This is the first release of ViewPager2.

New features

API changes

Known issues