Help Lottie For Android Studio

0

I am implementing lottie for animations in android studio, I put it in an activity in this way

<com.airbnb.lottie.LottieAnimationView
android:id="@+id/animation_view"
android:layout_width="392dp"
android:layout_height="421dp"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_marginBottom="17dp"
app:lottie_autoPlay="true"
app:lottie_fileName="rate.json"
app:lottie_imageAssetsFolder="assets"
app:lottie_loop="true" />

but the animation is going a little lagueada no porq hehe someone could advise me some tip or a teacher I knew to say that in the MANIFEST could tell the App to take more resources of the mobile something like that but I can not find ejeje help please hehe

    
asked by Estudiantes de ISAC 15.10.2018 в 23:20
source

1 answer

0

You have to go to the manifest file and after the tag has started add the following line of code:

android:largeHeap="true"

In order to increase the Heap memory used by the application, so the header of the label would look something like this:

 <application
    android:allowBackup="true"
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name"
    android:largeHeap="true"
    android:roundIcon="@drawable/ic_launcher"
    android:supportsRtl="true"
    android:theme="@style/AppTheme">
    
answered by 17.10.2018 в 07:22