title: Loop Lottie animation from a certain frame
body: <p>I'm trying to loop animation between certain frames but I don't see the animation at all and if I remove the <code>LottieCompositionFactory....addListener</code> code and just use the xml file, the animation does display but, I want to run the animation between certain frames:</p>
  
  <pre><code>class OnboardingFragment : Fragment() {
    ...
    ...
    private var myComposition: LottieComposition? = null
    ...
    override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
  
      LottieCompositionFactory.fromRawRes(context, R.raw.my_animation)
                  .addListener {
                      myComposition = it
                      Log.d(TAG, "Is animation displaying: $myComposition") //does print the LottieComposition
                      with(lottieAnimation) {
                          alpha = 0F
                          visibility = View.VISIBLE
                          myComposition?.let { it1 -&gt; setComposition(it1) }
                          repeatCount = ValueAnimator.INFINITE
                          setMinAndMaxFrame(29, 219)
                          playAnimation()
                      }
                  }
                  .addFailureListener {
                      Log.e(TAG, "Error displaying animation: ${it.message}")
                  }
  </code></pre>
  
  <p>and the layout file:</p>
  
  <pre><code>&lt;androidx.constraintlayout.widget.ConstraintLayout
  ...
  ...
  &lt;com.airbnb.lottie.LottieAnimationView
          android:id="@+id/lottieAnimation"
          android:layout_width="170dp"
          android:layout_height="146dp"
          android:layout_marginBottom="34dp"
          android:scaleType="fitStart"
          app:layout_constraintBottom_toTopOf="@+id/title"
          app:layout_constraintEnd_toEndOf="parent"
          app:layout_constraintHorizontal_bias="0.0"
          app:layout_constraintStart_toStartOf="parent"
          app:layout_constraintTop_toBottomOf="@id/topGuide"
          app:lottie_autoPlay="true"
          app:lottie_loop="true"/&gt;
  </code></pre>
  
  <p>I tried adding <code>app:lottie_rawRes="@raw/my_animation"</code> in the above layout but that didn't change anything.</p>