Add unit test for XML initialized Lottie view. (#1437)

To prevent issue like #1432 from happening again, add a unit test to verify the Lottie view initialization process via XML.

One nit of this PR is the XML test file is included in aar. If there's better option to exclude it from release package, please advise.
diff --git a/LottieSample/build.gradle b/LottieSample/build.gradle
index 2f8a573..a2f7d91 100644
--- a/LottieSample/build.gradle
+++ b/LottieSample/build.gradle
@@ -103,6 +103,7 @@
   testImplementation 'junit:junit:4.12'
 
   androidTestImplementation 'androidx.test:core:1.2.0'
+  androidTestImplementation "org.robolectric:robolectric:4.0-alpha-3"
   androidTestImplementation 'androidx.test.ext:junit:1.1.0'
   androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
   androidTestImplementation 'androidx.test.espresso:espresso-idling-resource:3.1.0-alpha4'
diff --git a/LottieSample/src/androidTest/java/com/airbnb/lottie/samples/LottieAnimationViewTest.java b/LottieSample/src/androidTest/java/com/airbnb/lottie/samples/LottieAnimationViewTest.java
new file mode 100644
index 0000000..cb3a831
--- /dev/null
+++ b/LottieSample/src/androidTest/java/com/airbnb/lottie/samples/LottieAnimationViewTest.java
@@ -0,0 +1,30 @@
+package com.airbnb.lottie.samples;
+
+import android.app.Activity;
+import android.view.LayoutInflater;
+
+import org.junit.Before;
+import org.junit.Ignore;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.robolectric.Robolectric;
+import org.robolectric.RobolectricTestRunner;
+import org.robolectric.annotation.Config;
+
+@RunWith(RobolectricTestRunner.class)
+@Config
+@Ignore
+public class LottieAnimationViewTest {
+
+  private Activity activity;
+
+  @Before
+  public void setup(){
+    activity = Robolectric.buildActivity(Activity.class).create().get();
+  }
+
+  @Test
+  public void inflateShouldNotCrash() {
+    LayoutInflater.from(activity).inflate(R.layout.lottie_activity_main, null);
+  }
+}
diff --git a/LottieSample/src/main/res/layout/lottie_activity_main.xml b/LottieSample/src/main/res/layout/lottie_activity_main.xml
new file mode 100644
index 0000000..dc12301
--- /dev/null
+++ b/LottieSample/src/main/res/layout/lottie_activity_main.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="utf-8"?>
+<FrameLayout 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:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:layout_gravity="center"
+        android:scaleType="fitCenter"
+        app:lottie_autoPlay="true"
+        app:lottie_colorFilter="@android:color/background_dark"
+        app:lottie_speed="1.0"
+        app:lottie_progress="0.5"
+        app:lottie_renderMode="automatic"
+        app:lottie_repeatCount="3"
+        app:lottie_repeatMode="restart"
+        app:lottie_loop="true" />
+</FrameLayout>
\ No newline at end of file