Android animation does not repeat

后端 未结 23 1446
囚心锁ツ
囚心锁ツ 2020-11-27 14:01

I\'m trying to make simple animation that would repeat several times (or infinitely).
It seems that android:repeatCount does not work!
Here is my anim

23条回答
  •  离开以前
    2020-11-27 14:36

    i just came across this issue while working on a backwards compatible app. so frustrating! i ended up coding a nice workaround class that can be called from onCreate and will kickoff any animation resource into an indefinite loop.

    the class, AnimationLooper, is available here: https://gist.github.com/2018678

提交回复
热议问题