我做了类似于这样的事情
val animator = ObjectAnimator.ofFloat(view, "translationY", 350f,0f)
animator.duration = 500
animator.startDelay=200
animator.interpolator =AccelerateDecelerateInterpolator()
animator.start()
现在我正在尝试为这个适配器添加监听器。 我已经尝试过如下:
animator.addListener(onStart = {view.visibility=View.VISIBLE})
但是它没有起作用。