title: Android Kotlin - set animation end / finish listener
body: <pre><code>val anim = swipe.animate()
          .rotationBy((-30).toFloat())
          .setDuration(1000)
          .translationX((-swipe.left).toFloat())
          .setInterpolator(AccelerateDecelerateInterpolator())
  
  anim.start()
  </code></pre>
  <p>I need an animation finish listener, I tried:</p>
  <pre><code>anim.setAnimationListener(object : Animation.AnimationListener {
      override fun onAnimationStart(p0: Animation?) {
  
      }
  
      override fun onAnimationRepeat(p0: Animation?) {
  
      }
  
      override fun onAnimationEnd(p0: Animation?) {
  
      }
  })
  </code></pre>
  <p>but get this error</p>
  <blockquote>
  <p>Unresolved reference: setAnimationListener</p>
  </blockquote>
  <p>How to do this right?</p>