How to apply easing animation function on view in Android

后端 未结 5 2043
情深已故
情深已故 2020-12-14 04:11

I want to apply a translate animation on an Android view (button) using a custom interpolator where the easing function is:

         


        
5条回答
  •  抹茶落季
    2020-12-14 04:53

    FYI: for people who just want an ease interpolator you can just use myAnimator.setInterpolator(new AccelerateDecelerateInterpolator());

提交回复
热议问题