I need to synchronize the two ViewPager together. The requirement is something like on scrolling the ViewPager-1 and the ViewPager-2 should also scroll by certain amount. The Image shown below will make you more clear with my question.
You can also help me with some tutorials link. Thanks.
You can extend ViewPager in order to create a custom view and override onTouchEvent() in the following way:
Also create a setter inside your custom class in order to set the dependentView
Then you should set the second viewpager as dependent view of the first viewpager in your activity.
I think this is what you need:
I have a same problem, but first I try to use fakeDragBy method, which is dead end. (if you have more than two pages)