Лотти для Xamarin Android Не работает должным образом, ее наложение и создание неучтенной анимации в Xamarin.Android

#android #xamarin #xamarin.android #android-animation #lottie

Вопрос:

Я установил анимацию Лоти[Com.Airbnb.Android.Lottie] плагин с версией 3.0.6 в собственном проекте и добавленный файл json в папку ресурсов вот макет анимации loti

 <?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent">
    <com.airbnb.lottie.LottieAnimationView
        android:id="@ id/animation_view"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
       
        app:lottie_fileName="logo_color2.json"
        app:lottie_autoPlay="true"
       app:lottie_renderMode="hardware"
        android:layout_centerVertical="true"
        android:layout_centerHorizontal="true" />
    <TextView
        android:text="Strommad AB"
        android:textSize="15dp"
        android:layout_centerInParent="true"
        android:layout_alignParentBottom="true"
        android:layout_width="wrap_content"
        android:layout_marginBottom="60dp"
        android:textColor="#CFCFCF"
        android:layout_height="wrap_content"/>
</RelativeLayout>
 

а вот код действия

   [Activity(Theme = "@style/Theme.Splash",
        MainLauncher = true,
        NoHistory = true)]
    public class SplashActivity : AppCompatActivity, Animator.IAnimatorListener
    {
        protected override void OnCreate(Bundle savedInstanceState)
        {
            try
            {
                base.OnCreate(savedInstanceState);
                RequestWindowFeature(Android.Views.WindowFeatures.NoTitle);
                Window.SetFlags(Android.Views.WindowManagerFlags.Fullscreen,
                    (Android.Views.WindowManagerFlags.Fullscreen));
                SetContentView(Resource.Layout.Activity_Splash);

                var animationView = FindViewById<LottieAnimationView>(Resource.Id.animation_view);
                animationView.AddAnimatorListener(this);
            }
            catch (System.Exception ex)
            {


            }
        }

        public void OnAnimationCancel(Animator animation)
        {
        }

        public void OnAnimationEnd(Animator animation)
        {
            StartActivity(new Intent(Application.Context, typeof(MainActivity)));
        }

        public void OnAnimationRepeat(Animator animation)
        {
        }

        public void OnAnimationStart(Animator animation)
        {
        }
    }
 

когда анимация начинает показываться вот так, что не является требуемым результатом
введите описание изображения здесь

когда анимация начинает выводить результат, как описано выше, как я могу исправить эту проблему, я много ищу, но не нахожу ее проблему в файле json или в файле кода ниже, это требуемый результат вывода. введите описание изображения здесь