Answer the question
In order to leave comments, you need to log in
How to keep ObjectAnimator on screen rotation?
Hello.
Faced difficulty, you need to save the value of the animator when the screen is rotated, but I don’t understand and can’t figure out how to do it (except for crutches)
ObjectAnimator anim = ObjectAnimator.ofInt(progressBar, "progress", 800, 0);
anim.setDuration(8000);
anim.start();
timer....
run(){
iter++;// проверить сколько раз сработал таймер
ObjectAnimator anim = ObjectAnimator.ofInt(progressBar, "progress", iter*100
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question