I've been trying for hours, I feel it's time to give up. How can I loop an AnimatorSet defined in xml?
<set xmlns:android="http://schemas.android.com/apk/res/android"> <objectAnimator /> <objectAnimator /> <objectAnimator /> <objectAnimator /> </set> I tried dozens of combinations of startOffset, repeatCount and duration on the single objectAnimators, but that's just not the right way.
I read about this promising workaround:
a.addListener(new AnimatorListenerAdapter() { @Override public void onAnimationEnd(Animator animation) { animation.start(); Log.i(); } }); but it just doesn't work: onAnimationEnd is called one time, animation is repeated, and then onAnimationEnd is not called anymore.
Other similar questions here involve wrong answers (referring to the android.view.animation framework) or suggest defining a custom interpolator for a single objectAnimator, but that's not really what I'm looking for. Thank you.