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

来回滑动会出现无法闭合activity的现象 #1

Open
1liufeilong opened this issue Sep 2, 2014 · 0 comments
Open

来回滑动会出现无法闭合activity的现象 #1

1liufeilong opened this issue Sep 2, 2014 · 0 comments

Comments

@1liufeilong
Copy link

    switch (event.getAction()) {
    case MotionEvent.ACTION_MOVE:
        int moveX = (int) event.getRawX();
        if (moveX - downX >= 0 && Math.abs((int) event.getRawY() - downY) < mTouchSlop) {
            isSilding = true;
        }

        if (moveX - downX >= 0 && isSilding) {
            System.out.println("finals  " + (downX - moveX));
            mContentView.scrollTo(downX - moveX, 0);
        }else{
            mContentView.scrollTo(0, 0);
        }
        break;

这是我修复的方案,你应该能看懂,希望能完善下

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

1 participant