Detecting when ValueAnimator is done

后端 未结 3 1673
清酒与你
清酒与你 2021-02-02 05:37

Right now I am detecting the end of my ValueAnimator by checking when the progress has reached 100...

//Setup the animation
ValueAnimator anim = ValueAnimator.of         


        
3条回答
  •  南笙
    南笙 (楼主)
    2021-02-02 06:07

    On Kotlin with Android KTX (Core):

    animator.doOnEnd {
        // done
    }
    

提交回复
热议问题