I have used a LottieAnimationView in my andriod XML with a lottie animation file. The animation file itself has transparent background but the LottieAnimationView has a white background that I can’t seem to change.
When I go to dark mode, the LottieAnimationView’s white background is visible.
I tried changing the background tag in XML but non of it works. Here the the XML:
<com.airbnb.lottie.LottieAnimationView
android:id="@+id/anim_start_btn"
android:layout_width="@dimen/_110sdp"
android:layout_height="@dimen/_40sdp"
android:background="@color/background"
android:backgroundTint="@color/background"
android:scaleType="centerCrop"
app:lottie_speed="1.2"
app:lottie_rawRes="@raw/start_btn"
app:lottie_autoPlay="false"
app:lottie_loop="false"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintBottom_toTopOf="@id/tv_start_instruction"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent"
/>
1