It is possible to override the action of switching screens of a ViewPager that by default drags to the sides (from left to right and vice versa) to pass the screen with movements from top to bottom and from bottom to top?
Asked
Active
Viewed 70 times
1 Answers
2
You can change the default direction to top-to-bottom by using the orientation
attribute of ViewPager2.
<androidx.viewpager2.widget.ViewPager2
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/pager"
android:orientation="vertical" />

Navjot
- 1,202
- 1
- 11
- 24