Skip to content
This repository has been archived by the owner on Feb 8, 2022. It is now read-only.

Very important functionality Pause and Resume animation are missing. #35

Open
ashishkumawat opened this issue Sep 19, 2017 · 2 comments

Comments

@ashishkumawat
Copy link

Please add pause and resume functions I customize library in my project to add functionality but ViewanimatorSet require api 19 for pause and resume. Hence please add your inbuilt functionality. My project supports minimum api 17.

@florent37
Copy link
Owner

an you share the code to pause / resume please ? or make a pull request

@ashishkumawat
Copy link
Author

ashishkumawat commented Sep 19, 2017

I just simply called android inbuilt functions inside ViewAnimator class.

public ViewAnimator pause() {
        if (animatorSet != null){
            if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
                animatorSet.pause();
            }
        }
        return this;
    }

    public ViewAnimator resume() {
        if (animatorSet != null){
            if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
                animatorSet.resume();
            }
        }
        return this;
    }

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

No branches or pull requests

2 participants