Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

图片滑动效果不连贯 #6

Open
Fessible opened this issue Dec 11, 2017 · 1 comment
Open

图片滑动效果不连贯 #6

Fessible opened this issue Dec 11, 2017 · 1 comment

Comments

@Fessible
Copy link

布局上添加图片以后,当滑动到临界位置进行切换时,会有小小的跳动动画。
无限循环时效果不是非常完美。

不完美处在这里

@OverRide
public void onPageSelected(int position) {
curPosition = position;

    if (curPosition == list.size() - 1 || curPosition == 0) {
        final int newReplacePosition = getRealPosition(curPosition);
   
        mHandler.postDelayed(new Runnable() {
            @Override
            public void run() {
                viewPager.setCurrentItem(newReplacePosition,false);
            }
        },250);
    }
}
@androiddevelop
Copy link
Owner

好的,我看看怎么去修复

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants