Top "Android-viewpager2" questions

ViewPager2 is the replacement of ViewPager, addressing most of its predecessor's pain-points, including right-to-left layout support, vertical orientation and modifiable Fragment collections.

Proper implementation of ViewPager2 in Android

I came to know about ViewPager2 and tried to implement it, but didn't find any proper example. Can anyone tell …

android android-viewpager android-viewpager2
How to use TabLayout with ViewPager2 in Android

I want to use com.google.android.material.tabs.TabLayout component with Android's new ViewPager implementation androidx.viewpager2.widget.ViewPager2. …

java android androidx android-tablayout android-viewpager2
Pages must fill the whole ViewPager2 (use match_parent)

I have an item layout where I display an image, product name, and product image. I must display image in 1:1.5 …

android android-viewpager2
How to disable swiping in ViewPager2?

Is it possible to enable-disable swiping in new android viewpager2 component?

android androidx android-viewpager2
View Pager with previous and next item smaller in size with infinite scroll

Want to create the view pager same as following UI, applied custom transformer but not working. ViewPager.java public class …

android android-viewpager android-animation android-transitions android-viewpager2
Why FragmentStateAdapter not work in ViewPager2?

Android Studio 3.6 I want in my activity to use 2 fragments inside ViewPager2. Here my activity: import androidx.annotation.Nullable; import …

android android-viewpager2
ViewPager2 with differing item heights and WRAP_CONTENT

There are a few posts on getting ViewPager to work with varying height items that center around extending ViewPager itself …

android android-viewpager2
ViewPager2 default position

I'm creating a slideshow with ViewPager2. For example, the slideshow has 3 items and I want to show the second item …

android android-viewpager2