1.我需要在特定的时机执行一个ValueAnimator动画,但是一旦执行完后,再次执行start就无效,必须要新建一个ValueAnimator,很浪费,请问怎样可以让一个已经执行完成的ValueAnimator可以再次执行
试下setRepeatMode();方法
先通过setRepeatCount()设置重复次数,然后通过setRepeatMode()方法设置重复播放的模式
1.我需要在特定的时机执行一个ValueAnimator动画,但是一旦执行完后,再次执行start就无效,必须要新建一个ValueAnimator,很浪费,请问怎样可以让一个已经执行完成的ValueAnimator可以再次执行
试下setRepeatMode();方法
先通过setRepeatCount()设置重复次数,然后通过setRepeatMode()方法设置重复播放的模式