Realize the linkage effects of ViewPager

参考链接:android - Synchronizing two ViewPagers using OnPageChangeListener - Stack Overflow

Which has a perfect solution

https://stackoverflow.com/a/24104748/8562540

Its simple operation

Ideas sentence: that is, when the operating current ViewPager, will make the corresponding associated ViewPager operation is performed once on the line

It should be noted that the current ViewPager (For convenience of description, I referred to as Master) when driven association ViewPager (For convenience of description, I referred to as Linked),

Linked not to drive Master, otherwise the consequences. . . Therefore, the program used to stop the field forSuper Linked to drive Master

 

Guess you like

Origin www.cnblogs.com/buyishi/p/11793919.html