title: Lottie Animation is too small
body: <p>I am using a lottie animation in my android app. I downloaded the json file and pasted res/raw. I am using it my app using XML and Java, but when I run the app, its size is very tiny compared to parent because I set width and height to <code>match_parent</code>.</p>
  <p>Here is my code</p>
  <pre><code>&lt;RelativeLayout
  
      android:layout_marginTop=&quot;@dimen/margin5&quot;
      android:id=&quot;@+id/eight_relative&quot;
      app:layout_constraintTop_toBottomOf=&quot;@+id/seventh_relative&quot;
      android:layout_width=&quot;70dp&quot;
      android:layout_height=&quot;50dp&quot;&gt;
  
      &lt;com.airbnb.lottie.LottieAnimationView
          android:scaleType=&quot;centerCrop&quot;
          android:id=&quot;@+id/disk_encryption_switch&quot;
          android:layout_marginEnd=&quot;@dimen/margin30&quot;
          android:layout_alignParentEnd=&quot;true&quot;
          android:layout_width=&quot;match_parent&quot;
          android:layout_height=&quot;match_parent&quot;
          app:lottie_rawRes=&quot;@raw/switch_animation&quot;
  
          /&gt;
  &lt;/RelativeLayout&gt;
  </code></pre>
  <p>I changed the scale type and padding, but that didn't fix it. How can I make it bigger?</p>