Skip to content
This repository has been archived by the owner on Jan 19, 2023. It is now read-only.

make CyclicTransitionDrawable only go for one loop #1

Open
andytriboletti opened this issue Sep 20, 2012 · 2 comments
Open

make CyclicTransitionDrawable only go for one loop #1

andytriboletti opened this issue Sep 20, 2012 · 2 comments

Comments

@andytriboletti
Copy link

Do you know how I could modify the code to make it only loop once?

@andytriboletti
Copy link
Author

I replaced the code in the bottom else block with this to make it only loop once, fyi:

    if (currentDrawableIndex == 2) {        
        transitionStatus = TransitionState.PAUSED;
    } else {
        getDrawable(currentDrawableIndex).draw(canvas);
        invalidateSelf();
    }

@cblunt
Copy link
Member

cblunt commented Oct 4, 2012

Thanks Andy, I'll update the repo code.

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

No branches or pull requests

2 participants