lightSky / InfiniteIndicator

This lib can be used for viewpager infinite loop with indicator easily.
486 stars 102 forks source link

how to add an onPageChange listener? #3

Closed yushilong closed 9 years ago

lightSky commented 9 years ago

You can add a method in InfiniteIndicatorLayout

public void setOnPageChangeListener(ViewPager.OnPageChangeListener onPageChangeListener){
        if(onPageChangeListener!=null)
            mIndicator.setOnPageChangeListener(onPageChangeListener);
    }