OSDN Git Service

Add placeholder animation for face enrolling
authorKevin Chyn <kchyn@google.com>
Fri, 22 Feb 2019 01:52:17 +0000 (17:52 -0800)
committerKevin Chyn <kchyn@google.com>
Fri, 22 Feb 2019 04:07:45 +0000 (20:07 -0800)
Bug: 111548033

Test: Builds
Change-Id: I0c8af1c24cc7c11f9d2c2a98b23d11b21b63547e

res/layout/face_enroll_introduction.xml
res/raw/face_enroll_introduction_animation.mp4 [new file with mode: 0644]

index 4096925..b5f13db 100644 (file)
             android:layout_height="wrap_content"
             android:layout_weight="1">
 
-            <ImageView
+            <com.google.android.setupdesign.view.IllustrationVideoView
+                xmlns:android="http://schemas.android.com/apk/res/android"
+                xmlns:app="http://schemas.android.com/apk/res-auto"
+                android:id="@+id/face_enroll_introduction_animation"
                 style="@style/SudContentIllustration"
                 android:layout_width="match_parent"
                 android:layout_height="match_parent"
-                android:contentDescription="@null"
-                android:src="@drawable/face_enroll_introduction" />
+                app:sudVideo="@raw/face_enroll_introduction_animation" />
 
         </com.google.android.setupdesign.view.FillContentLayout>
 
diff --git a/res/raw/face_enroll_introduction_animation.mp4 b/res/raw/face_enroll_introduction_animation.mp4
new file mode 100644 (file)
index 0000000..e69de29