title: How to delay an animation in Kotlin?
body: <p>Can someone help me with delaying an animation before every repetition with a duration x?</p>
  
  <p>Here is my animation:</p>
  
  <pre><code>val animations = arrayOf(-140f).map { translation -&gt;
      ObjectAnimator.ofFloat(button, "translationX", translation).apply {
          startDelay = 1000L     //Update
          duration = 800
          repeatCount = ObjectAnimator.INFINITE
          repeatMode = ObjectAnimator.RESTART
      }
  }
  
  val set = AnimatorSet()
      set.playTogether(animations)
      set.start()
  </code></pre>
  
  <p>Thanks!</p>