-
-
Save wuyexiong/7f557d25e1cecf67423c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private OnPageChangeListener mOnPageChangeListener = new OnPageChangeListener() { | |
@Override | |
public void onPageSelected(int position) { | |
// Do whatever you wan't to do. It's up to you ... not me :) | |
} | |
@Override | |
public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) { | |
// Do whatever you wan't to do. It's up to you ... not me :) | |
} | |
@Override | |
public void onPageScrollStateChanged(int state) { | |
mViewPager.requestDisallowInterceptTouchEvent(state != ViewPager.SCROLL_STATE_IDLE); | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment