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

SwipeAnimation duration doesn't used #64

Open
JackyDuong opened this issue Oct 20, 2016 · 2 comments
Open

SwipeAnimation duration doesn't used #64

JackyDuong opened this issue Oct 20, 2016 · 2 comments

Comments

@JackyDuong
Copy link

Hi !
I'm trying to increase the duration of my animation on swipe left or right and I saw the below code in SwipeListener:

private ViewPropertyAnimator animateOffScreenLeft(int duration) {
        return card.animate()
                .setDuration(SwipeDeck.ANIMATION_DURATION)
                .x(-(parentWidth))
                .y(0)
                .rotation(-30);
    }

    private ViewPropertyAnimator animateOffScreenRight(int duration) {
        return card.animate()
                .setDuration(SwipeDeck.ANIMATION_DURATION)
                .x(parentWidth * 2)
                .y(0)
                .rotation(30);
    }

The parameter duration is never used. Can you change this ?

@TGIO
Copy link

TGIO commented Nov 1, 2016

its fixed already. Can be closed now.

@wizardkhinz18
Copy link

I wonder you will fix this issue thanks

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

3 participants